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
()
| 24944 | |
| 24945 | |
| 24946 | def _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 | |
| 24962 | def _main_entry_point(): |
nothing calls this directly
no test coverage detected