Commits

Henrik Vendelbo committed a4de982

re-established sys.executable_name

Comments (0)

Files changed (1)

pypy/translator/goal/commands_main.py

                     executable = fn
                     break
     sys.executable = os.path.abspath(executable)
+    executable_name = sys.executable.split(os.sep)[-1]
+    sys.executable_name = executable_name in exe_mappings and exe_mappings[executable_name] or executable_name
+    sys.product_name = get_product_name(executable_name)
 
 product_library_paths = [
     ['Library/%(product)s/%(version)s/'],