1. Armin Ronacher
  2. virtualenv


ianb  committed 9651af8

[svn r3586] Add a check for activate_this.py

  • Participants
  • Parent commits 02165d4
  • Branches trunk

Comments (0)

Files changed (1)

File virtualenv.py

View file
     Makes the already-existing environment use relative paths, and takes out 
     the #!-based environment selection in scripts.
+    activate_this = os.path.join(home_dir, 'bin', 'activate_this.py')
+    if not os.path.exists(activate_this):
+        logger.fatal(
+            'The environment doesn\'t have a file %s -- please re-run virtualenv '
+            'on this environment to update it' % activate_this)