1. Pypy
  2. Untitled project
  3. pypy

Commits

Amaury Forgeot d'Arc  committed dfb18fb

Some setup.py scripts use __file__, pass the correct value to execfile()

  • Participants
  • Parent commits 0a6b064
  • Branches default

Comments (0)

Files changed (1)

File pypy/module/cpyext/presetup.py

View file
  • Ignore whitespace
 patch_distutils()
 
 del sys.argv[0]
-execfile(sys.argv[0])
+execfile(sys.argv[0], {'__file__': sys.argv[0]})