Commits

jhammel  committed ede3a1a

add warning message if PYTHONHOME is set

  • Participants
  • Parent commits 12e4c04

Comments (0)

Files changed (1)

File virtualenv.py

         logger.fatal('Please deactivate your workingenv, then re-run this script')
         sys.exit(3)
 
-    if os.environ.get('PYTHONHOME'):
+    if 'PYTHONHOME' in os.environ:
+        logger.warn('PYTHONHOME is set.  You *must* activate the virtualenv before using it')
         del os.environ['PYTHONHOME']
 
     if options.relocatable: