From ab34ed657384d838494c9ae575e57accaba5a4b5 Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Fri, 28 Aug 2009 17:03:59 +0000 Subject: [PATCH] init.py: runscript() now works on Python 2.6 too. Thanks to Christian Blichmann for the patch. --- python/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/init.py b/python/init.py index 52fbb5a..4c4a651 100644 --- a/python/init.py +++ b/python/init.py @@ -61,7 +61,7 @@ def runscript(script): sys.argv = [ script ] # Adjust the __file__ path in the globals we pass to the script g = globals() - old__file__ = g['__file__'] + old__file__ = g['__file__'] if '__file__' in g else '' g['__file__'] = script try: execfile(script, g)