Skip to content

Instantly share code, notes, and snippets.

@akatreyt
Created March 22, 2015 22:53
Show Gist options
  • Save akatreyt/8fb68bb028737ae58f5e to your computer and use it in GitHub Desktop.
Save akatreyt/8fb68bb028737ae58f5e to your computer and use it in GitHub Desktop.
import subprocess, os
os.chdir("my/path/here")
print subprocess.call("pwd", shell=True)
subprocess.call("/usr/local/bin/virtualenvwrapper.sh && workon project_name && ./manage.py update_index --remove", shell=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment