Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d1892a241f |
+2
-2
@@ -9,13 +9,13 @@ import json,sys,webbrowser,importlib,tomllib
|
|||||||
|
|
||||||
def update(*args):
|
def update(*args):
|
||||||
print('checking for updates...')
|
print('checking for updates...')
|
||||||
with open(script_path()+'astrolobott.py','r') as file:
|
with open(script_path()+'astrolobot.py','r') as file:
|
||||||
current_script=file.read()
|
current_script=file.read()
|
||||||
urlretrieve(
|
urlretrieve(
|
||||||
'https://github.com/sugoidogo/astrolobot/releases/latest/download/astrolobot.py',
|
'https://github.com/sugoidogo/astrolobot/releases/latest/download/astrolobot.py',
|
||||||
script_path()+'astrolobot.py'
|
script_path()+'astrolobot.py'
|
||||||
)
|
)
|
||||||
with open(script_path()+'astrolobott.py','r') as file:
|
with open(script_path()+'astrolobot.py','r') as file:
|
||||||
updated_script=file.read()
|
updated_script=file.read()
|
||||||
if current_script==updated_script:
|
if current_script==updated_script:
|
||||||
print('up to date')
|
print('up to date')
|
||||||
|
|||||||
Reference in New Issue
Block a user