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

View file

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