Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
MP3Martin committed Mar 10, 2022
1 parent 13a34e9 commit 8e7ac45
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion input_num/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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))



Expand Down

0 comments on commit 8e7ac45

Please sign in to comment.