Created
January 14, 2016 06:57
-
-
Save Tukki/89db933126b7796130ec to your computer and use it in GitHub Desktop.
在virtualenv里面使用bpython
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://stackoverflow.com/questions/11172379/python-and-bpython-using-different-pythonpaths-in-virtualenv | |
在virtualenv里面安装, 或修改 .bash/.zshrc | |
bpython() { | |
if test -n "$VIRTUAL_ENV" | |
then | |
PYTHONPATH="$(python -c 'import sys; print ":".join(sys.path)')" \ | |
command bpython "$@" | |
else | |
command bpython "$@" | |
fi | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment