Kaydet (Commit) c2047c19 authored tarafından Guido van Rossum's avatar Guido van Rossum

When run as a script, don't pass a fake __main__ dictionary; use the

real one.
üst e0e59829
......@@ -893,4 +893,4 @@ if __name__=='__main__':
# Insert script directory in front of module search path
sys.path.insert(0, os.path.dirname(filename))
run('execfile(' + `filename` + ')', {'__name__': '__main__'})
run('execfile(' + `filename` + ')')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment