From c1ecc4131d14bdf730ace2463b5614a2518cb2a3 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Sun, 24 Oct 2021 11:35:16 -0400 Subject: [PATCH] Changed main entry point for pip installs so that psgmain.exe is exited --- PySimpleGUI.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 52f000f3..683926e3 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,7 +1,7 @@ #!/usr/bin/python3 -version = __version__ = "4.51.7.6 Unreleased" +version = __version__ = "4.51.7.7 Unreleased" _change_log = """ @@ -33,6 +33,8 @@ _change_log = """ Version number bump so that the pip install from github will be greater than the current pypi 4.51.7 4.51.7.6 Subprocess import changed for 3.4 compatibility... yes, PySimpleGUI is STILL 3.4 compatible + 4.51.7.7 + Changed "main" entry point for the psgmain command so that if an upgrade is attempted it will work correctly (the psgmain.exe will have exited) """ __version__ = version.split()[0] # For PEP 396 and PEP 345 @@ -21854,7 +21856,7 @@ def _copy_files_from_github(): "entry_points={", "'gui_scripts': [", "'psgissue=PySimpleGUI.PySimpleGUI:main_open_github_issue',", - "'psgmain=PySimpleGUI.PySimpleGUI:main',", + "'psgmain=PySimpleGUI.PySimpleGUI:_main_entry_point',", "'psgupgrade=PySimpleGUI.PySimpleGUI:_upgrade_entry_point',", "'psghelp=PySimpleGUI.PySimpleGUI:main_sdk_help',", "'psgver=PySimpleGUI.PySimpleGUI:main_get_debug_data',", @@ -21955,6 +21957,8 @@ def _upgrade_entry_point(): """ execute_py_file(__file__, 'upgrade') +def _main_entry_point(): + execute_py_file(__file__) main_upgrade_from_github = _upgrade_entry_point