create updates folder, open oml in background

This commit is contained in:
j 2016-01-13 10:58:42 +05:30
parent a723709641
commit 6be1e2cad5
1 changed files with 2 additions and 1 deletions

View File

@ -116,6 +116,7 @@ class Install(Thread):
os.system('./ctl install_launcher')
with open('config/release.json', 'w') as fd:
json.dump(release, fd, indent=2)
os.makedirs('updates')
os.system('./ctl setup')
self.status['progress'] = 1
self.status['done'] = True
@ -168,4 +169,4 @@ if __name__ == '__main__':
install = Install(target)
install.join()
if not install.failed:
subprocess.call([os.path.join(target, 'ctl'), 'open'])
subprocess.Popen([os.path.join(target, 'ctl'), 'open'])