Commits

Paweł Piotr Przeradowski  committed 0806ff7

attempt to fix app_main

  • Participants
  • Parent commits 8f98f2b
  • Branches pythoninspect-fix

Comments (0)

Files changed (1)

File pypy/interpreter/app_main.py

         if os.getenv('PYTHONVERBOSE'):
             options["verbose"] = 1
 
+    # skip environment cache since PYTHONINSPECT could be set in same process
+    from __pypy__.os import real_getenv
+
     if (options["interactive"] or
-        (not options["ignore_environment"] and os.getenv('PYTHONINSPECT'))):
+        (not options["ignore_environment"] and real_getenv('PYTHONINSPECT'))):
         options["inspect"] = 1
 
 ##    We don't print the warning, because it offers no additional security