/vpython

Run python scripts in their virtual environments.

Primary LanguagePythonMIT LicenseMIT

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.