Author: Amaury Forgeot d'Arc <[email protected]>
Branch:
Changeset: r46664:dfb18fba2323
Date: 2011-08-20 14:39 +0200
http://bitbucket.org/pypy/pypy/changeset/dfb18fba2323/
Log: Some setup.py scripts use __file__, pass the correct value to
execfile()
diff --git a/pypy/module/cpyext/presetup.py b/pypy/module/cpyext/presetup.py
--- a/pypy/module/cpyext/presetup.py
+++ b/pypy/module/cpyext/presetup.py
@@ -42,4 +42,4 @@
patch_distutils()
del sys.argv[0]
-execfile(sys.argv[0])
+execfile(sys.argv[0], {'__file__': sys.argv[0]})
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit