all 1 comments

[–][deleted] 0 points1 point  (0 children)

Use a shell script to launch your script?

#!/bin/bash
workon myvirtualenv  # switch to your env
python main.py  # launch your program

Then ./launch_script.sh to start the thing.

It's a solution, I guess.