Quantcast
Viewing all articles
Browse latest Browse all 5127

Python • Re: lunch venv and python scipt on startup

I tried this and worked like a sharm.
Thank you very much!!!

Code:

/path/to/venv/bin/python  /path/to/script.py
You can even run the code with a single command line :

Code:

source /path/to/venv/activate && /path/to/script.py
Or

Code:

/path/to/venv/bin/python  /path/to/script.py
Python is smart enough to know it's in a venv when started this way.

Statistics: Posted by rafik — Tue Dec 03, 2024 3:46 pm



Viewing all articles
Browse latest Browse all 5127

Trending Articles