def virtualenv_setup(): remote.virtualenv_check() remote.virtualenv_activate()
def restart(virtualenv=virtualenv_default): if virtualenv is True: with hide('stdout', 'stderr'): remote.virtualenv_check() remote.virtualenv_activate() remote.supervisor_restart()