Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 478 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 478 Bytes

vPython

Run python scripts in their virtual environments.

Install

pipx install git+https://github.com/Xdynix/vpython.git

Usage

vpython some-script-in-venv.py arg1 arg2

Example

virtualenv .venv
echo 'import sys; print(sys.executable)' > main.py

vpython main.py
# It should output tht python interpreter in virtual environment.

python main.py
# It should output system python, since virtual environment is not activated.