Skip to content

Instantly share code, notes, and snippets.

@dwins
Created November 3, 2010 13:51
Show Gist options
  • Save dwins/661089 to your computer and use it in GitHub Desktop.
Save dwins/661089 to your computer and use it in GitHub Desktop.
run virtualenv-sandboxed commands from a python script running outside the venv
import os
def vexec(cmd):
os.system("source bin/activate && DJANGO_SETTINGS_MODULE=geonode.settings " + cmd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment