Skip to content

Instantly share code, notes, and snippets.

@grizmin
Created February 21, 2017 09:47
Show Gist options
  • Save grizmin/c967d6821a7fa3dc3adb3f3634bf11d9 to your computer and use it in GitHub Desktop.
Save grizmin/c967d6821a7fa3dc3adb3f3634bf11d9 to your computer and use it in GitHub Desktop.
" 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