summaryrefslogtreecommitdiff
path: root/virtualenv.py
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2016-03-17 11:14:47 -0400
committerDonald Stufft <donald@stufft.io>2016-03-17 11:14:47 -0400
commite7243400fb3022be6a13daa8069e1e6307a7057e (patch)
tree44e666189bf5cd227447c18957e111d1cc918e7a /virtualenv.py
parent388081d7fc615cd4b4bf87ab635173c50b86637f (diff)
parent53f5004c21ddb94676f7433f7972c1b5754da777 (diff)
downloadvirtualenv-15.0.1.tar.gz
Merge branch 'develop'15.0.1
Diffstat (limited to 'virtualenv.py')
-rwxr-xr-xvirtualenv.py7
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')