Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @contextmanager
- def virtualenv():
- with prefix(env.activate):
- yield
- env.activate = 'source /srv/beehive/.virtualenvs/beehive/bin/activate'
- def meh():
- with virtualenv():
- run('./manage.py do crap')
Add Comment
Please, Sign In to add comment