@@ -, +, @@
---
virtualenv.py | 4 ++++
1 file changed, 4 insertions(+)
--- a/virtualenv.py
+++ a/virtualenv.py
@@ -791,6 +791,10 @@ def main():
sys.exit(2)
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')
--