Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d1892a241f | ||
|
|
eb045fa94a |
+3
-3
@@ -7,15 +7,15 @@ from threading import Thread
|
|||||||
from os import makedirs,path
|
from os import makedirs,path
|
||||||
import json,sys,webbrowser,importlib,tomllib
|
import json,sys,webbrowser,importlib,tomllib
|
||||||
|
|
||||||
def update():
|
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