replit / prybar

Pry open those interpreters.
GNU General Public License v2.0
253 stars 52 forks source link

prybar-python3 honors $VIRTUAL_ENV #55

Closed dan-stowell closed 4 years ago

dan-stowell commented 4 years ago

If $VIRTUAL_ENV is set, prybar-python3 will set the python program name to $VIRTUAL_ENV/bin/python. This means it will pick up the appropriate sys.path and any sitecustomize.py or usercustomize.py file present in the virtualenv.

Other packages (such as pip) use the name to find which python interpreter to invoke, so it's important that the program name resolve to an actual binary on the file system.

replbot commented 4 years ago

unbooping: approved