Created
February 21, 2017 09:47
-
-
Save grizmin/c967d6821a7fa3dc3adb3f3634bf11d9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
" VIRTUALENV setup | |
:python3 << EOF | |
import os | |
virtualenv = os.environ.get('VIRTUAL_ENV') | |
if virtualenv: | |
activate_this = os.path.join(virtualenv, 'bin', 'activate_this.py') | |
if os.path.exists(activate_this): | |
exec(compile(open(activate_this).read(), activate_this, 'exec'), {'__file__': activate_this}) | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment