from fabric.api import env # the user to use for the remote commands env.user = 'user' # the servers where the commands are executed env.hosts = ['server'] env.srv_venv_path = 'virtualenv folder path on host'