check if updater exists
This commit is contained in:
parent
56d8fa1cad
commit
c4843148e4
4 changed files with 27 additions and 6 deletions
|
|
@ -18,6 +18,15 @@ def connection_available():
|
|||
return False
|
||||
|
||||
|
||||
def updater_available():
|
||||
if is_from_sources():
|
||||
return os.path.exists(util.curr_directory() + '/toxygen_updater.py')
|
||||
elif platform.system() == 'Windows':
|
||||
return os.path.exists(util.curr_directory() + '/toxygen_updater.exe')
|
||||
else:
|
||||
return os.path.exists(util.curr_directory() + '/toxygen_updater')
|
||||
|
||||
|
||||
def check_for_updates():
|
||||
current_version = util.program_version
|
||||
major, minor, patch = list(map(lambda x: int(x), current_version.split('.')))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue