Guest User

Untitled

a guest
Jan 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. @contextmanager
  2. def virtualenv():
  3. with prefix(env.activate):
  4. yield
  5.  
  6. env.activate = 'source /srv/beehive/.virtualenvs/beehive/bin/activate'
  7.  
  8. def meh():
  9. with virtualenv():
  10. run('./manage.py do crap')
Add Comment
Please, Sign In to add comment