MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / _upgrade_entry_point

Function _upgrade_entry_point

PySimpleGUI/PySimpleGUI.py:24946–24959  ·  view source on GitHub ↗

This function is entered via the psgupgrade.exe file. It is needed so that the exe file will exit and thus allow itself to be overwritten which is what the upgrade will do. It simply runs the PySimpleGUI.py file with a command line argument "upgrade" which will actually

()

Source from the content-addressed store, hash-verified

24944
24945
24946def _upgrade_entry_point():
24947 """
24948 This function is entered via the psgupgrade.exe file.
24949
24950 It is needed so that the exe file will exit and thus allow itself to be overwritten which
24951 is what the upgrade will do.
24952 It simply runs the PySimpleGUI.py file with a command line argument "upgrade" which will
24953 actually do the upgrade.
24954 """
24955 interpreter = sys.executable
24956 if 'pythonw' in interpreter:
24957 interpreter = interpreter.replace('pythonw', 'python')
24958 # execute_py_file(__file__, 'upgrade', interpreter_command=interpreter)
24959 execute_py_file(__file__, parms='upgrade ' + ' '.join(sys.argv[1:]), interpreter_command=interpreter)
24960
24961
24962def _main_entry_point():

Callers

nothing calls this directly

Calls 1

execute_py_fileFunction · 0.70

Tested by

no test coverage detected