Skip to content

Instantly share code, notes, and snippets.

@ojii
Created September 17, 2012 12:38
Show Gist options
  • Save ojii/3737054 to your computer and use it in GitHub Desktop.
Save ojii/3737054 to your computer and use it in GitHub Desktop.
pegasus api
pipe = pegasus.run('manage.py syncdb --noinput', stdout=sys.stdout, stderr=sys.stderr)
pipe.communicate()
if pipe.return_code != 0:
raise Exception()
else:
print 'yippie'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment