$ cat run #!/bin/sh . venv/bin/activate python main.py
/path/to/env/bin/python main.py
will suffice. No need to create a separate shell script, start a new shell, and activate. Great for cronjobs.
/path/to/env/bin/python main.py
will suffice. No need to create a separate shell script, start a new shell, and activate. Great for cronjobs.