diff options
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') |