Skip to content

Commit

Permalink
[svn r3721] Add a warning for $PYTHONHOME
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Dec 10, 2008
1 parent 168794c commit 731bf82
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions virtualenv.py
Expand Up @@ -393,6 +393,13 @@ def main():
logger.fatal('Please deactivate your workingenv, then re-run this script')
sys.exit(3)

if os.environ.get('PYTHONHOME'):
if sys.platform == 'win32':
name = '%PYTHONHOME%'
else:
name = '$PYTHONHOME'
logger.warn('%s is set; this can cause problems creating environments' % name)

if options.relocatable:
make_environment_relocatable(home_dir)
return
Expand Down

0 comments on commit 731bf82

Please sign in to comment.