From dd0cba3d29ba4084d643822b857768976391c4e5 Mon Sep 17 00:00:00 2001 From: Justin Moen Date: Fri, 15 Jul 2016 17:09:45 -0700 Subject: [PATCH] Print to stderr --- xonsh/vox.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xonsh/vox.py b/xonsh/vox.py index c11c8b993..7568cac4b 100644 --- a/xonsh/vox.py +++ b/xonsh/vox.py @@ -1,5 +1,6 @@ """Python virtual environment manager for xonsh.""" import os +import sys import venv import shutil import builtins @@ -152,7 +153,8 @@ class Vox: for name in names: env_path = os.path.join(builtins.__xonsh_env__['VIRTUALENV_HOME'], name) if __xonsh_env__.get('VIRTUAL_ENV') == env_path: - print('The "%s" environment is currently active. In order to remove it, deactivate it first with "vox deactivate %s".\n' % (name, name)) + print('The "%s" environment is currently active. In order to remove it, deactivate it first with "vox deactivate %s".\n' % (name, name), + file=sys.stderr) return shutil.rmtree(env_path) print('Environment "%s" removed.' % name)