mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
Merge pull request #1435 from stockninja/stderr
Print to error to sys.stderr
This commit is contained in:
commit
1d5148bbc2
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue