diff options
author | Donald Stufft <donald@stufft.io> | 2016-03-17 11:14:47 -0400 |
---|---|---|
committer | Donald Stufft <donald@stufft.io> | 2016-03-17 11:14:47 -0400 |
commit | e7243400fb3022be6a13daa8069e1e6307a7057e (patch) | |
tree | 44e666189bf5cd227447c18957e111d1cc918e7a /virtualenv.py | |
parent | 388081d7fc615cd4b4bf87ab635173c50b86637f (diff) | |
parent | 53f5004c21ddb94676f7433f7972c1b5754da777 (diff) | |
download | virtualenv-15.0.1.tar.gz |
Merge branch 'develop'15.0.1
Diffstat (limited to 'virtualenv.py')
-rwxr-xr-x | virtualenv.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/virtualenv.py b/virtualenv.py index 68a5d87..13146f6 100755 --- a/virtualenv.py +++ b/virtualenv.py @@ -36,7 +36,7 @@ try: except ImportError: import configparser as ConfigParser -__version__ = "15.0.0" +__version__ = "15.0.1" virtualenv_version = __version__ # legacy if sys.version_info < (2, 6): @@ -677,6 +677,11 @@ def main(): home_dir = args[0] + if os.path.exists(home_dir) and os.path.isfile(home_dir): + logger.fatal('ERROR: File already exists and is not a directory.') + logger.fatal('Please provide a different path or delete the file.') + sys.exit(3) + if os.environ.get('WORKING_ENV'): logger.fatal('ERROR: you cannot run virtualenv while in a workingenv') logger.fatal('Please deactivate your workingenv, then re-run this script') |