Commits

Amaury Forgeot d'Arc committed dfb18fb

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

  • Participants
  • Parent commits 0a6b064

Comments (0)

Files changed (1)

File pypy/module/cpyext/presetup.py

 patch_distutils()
 
 del sys.argv[0]
-execfile(sys.argv[0])
+execfile(sys.argv[0], {'__file__': sys.argv[0]})