diff options
Diffstat (limited to 'Lib/distutils/core.py')
| -rw-r--r-- | Lib/distutils/core.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py index c40dd0a..640d6b5 100644 --- a/Lib/distutils/core.py +++ b/Lib/distutils/core.py @@ -210,8 +210,9 @@ def run_setup (script_name, script_args=None, stop_after="run"): _setup_stop_after = stop_after save_argv = sys.argv - g = {} + g = {'__file__': script_name} l = {} + os.chdir(os.path.dirname(script_name) or os.curdir) try: try: sys.argv[0] = script_name |
