windows warning

This commit is contained in:
2017-03-11 22:26:29 -05:00
parent ec1d71cf81
commit 434dd9599d
+4
View File
@@ -341,6 +341,10 @@ def do_create_virtualenv(three=None, python=None):
elif three is True:
python = 'python3'
# Windows!
if os.name == 'nt':
click.echo('{0} If you are running on Windows, you should use the {1} option instead.'.format(crayons.red('Warning!'), crayons.green('--python')))
if python:
cmd = cmd + ['-p', python]