From 8e7ac452075b1181b449f73977a7ce97a0eef705 Mon Sep 17 00:00:00 2001 From: MP3Martin <60501493+MP3Martin@users.noreply.github.com> Date: Thu, 10 Mar 2022 16:03:09 +0100 Subject: [PATCH] . --- input_num/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/input_num/__init__.py b/input_num/__init__.py index af6f928..e92303b 100644 --- a/input_num/__init__.py +++ b/input_num/__init__.py @@ -37,12 +37,16 @@ def __getattr__(self, attr): sys.modules[__name__] = CallableModule(sys.modules[__name__]) def allow_update(): + global silent + global updated silent = False if updated == 0: updated = 1 checkver() def not_silent(): + global silent + global updated allow_update() def online(): @@ -63,7 +67,7 @@ def checkver(): latest_version = responseinfl.json()['info']['version'] if latest_version != __version__: if silent == False: - print("[{}] New update is here, run 'python3 -m pip install --upgrade input_num' in normal terminal".format(packagenm)) + print("[{}] New update is here, run 'python3 -m pip install --upgrade input_num' TWO TIMES in normal terminal".format(packagenm))