Created
November 3, 2010 13:51
-
-
Save dwins/661089 to your computer and use it in GitHub Desktop.
run virtualenv-sandboxed commands from a python script running outside the venv
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
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