Skip to main content

New answers tagged

0 votes

Starting python script in a virtual environment using cron

Upon further digging, I found this works: /home/mipi/venv/bin/python /home/mipi/Startup/Startup.py
Ken's user avatar
  • 1
1 vote
Accepted

Using Python Virtual Environments

Virtual environments have been part of python for some time but little used by ordinary users. Users can no longer install libraries directly into the system version of Python since the advent of ...
Milliways's user avatar
  • 61.4k
0 votes

Using GPIOZERO button for 2 functions (Long/Short press )

I solved it like this: from gpiozero import Button from signal import pause def buttonHandle(pin): if buttonB.is_pressed and not buttonA.is_pressed: # just button B pressed: print("...
Wavesailor's user avatar

Top 50 recent answers are included