From 1a956a0e123303fe65aa9bc4d04b178abf776af3 Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Sun, 18 Oct 2020 12:15:11 -0400 Subject: [PATCH] Changed install to use version instead of __version__.. may take a couple tries.... --- PySimpleGUI.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 431a6543..d089999a 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,5 +1,5 @@ #!/usr/bin/python3 -version = "4.30.0.3 Unreleased \nAdded ability to set icon for popup_get_file when icon is set as parameter, changed __version__ to be same as 'ver' (the shortened version number), added Window.set_cursor" +version = "4.30.0.4 Unreleased \nAdded ability to set icon for popup_get_file when icon is set as parameter, changed __version__ to be same as 'ver' (the shortened version number), added Window.set_cursor, changed install to use version instead of __version__" # The shortened version of version try: @@ -18130,7 +18130,7 @@ def _install(files, url=None): version = "unknown" for line in file_contents[sourcefile].decode("utf-8").split("\n"): - line_split = line.split("__version__ =") + line_split = line.split("version =") if len(line_split) > 1: raw_version = line_split[-1].strip(" '\"") version = "" @@ -18149,7 +18149,7 @@ def _install(files, url=None): if file not in file_contents: file_contents[file] = ("from ." + package + " import *\n").encode() if version != "unknown": - file_contents[file] += ("from ." + package + " import __version__\n").encode() + file_contents[file] += ("from ." + package + " import version\n").encode() if sys.platform.startswith("linux") or (sys.platform == "ios"): search_in = sys.path else: