minors changes to update function
This commit is contained in:
parent
84783dfec0
commit
055b6d7a84
@ -4258,18 +4258,17 @@ def update_pyw():
|
|||||||
filout.write(dl)
|
filout.write(dl)
|
||||||
filout.close()
|
filout.close()
|
||||||
thread.start_new_thread(restart_pywallet, ())
|
thread.start_new_thread(restart_pywallet, ())
|
||||||
return "Updated, please wait..."
|
return "Updated, restarting..."
|
||||||
else:
|
else:
|
||||||
return "Problem when downloading new version ("+md5_2(dl)+"/"+md5_last_pywallet[1]+")"
|
return "Problem when downloading new version ("+md5_2(dl)+"/"+md5_last_pywallet[1]+")"
|
||||||
|
|
||||||
def restart_pywallet():
|
def restart_pywallet():
|
||||||
time.sleep(1)
|
|
||||||
thread.start_new_thread(start_pywallet, ())
|
thread.start_new_thread(start_pywallet, ())
|
||||||
time.sleep(0.3)
|
time.sleep(2)
|
||||||
reactor.stop()
|
reactor.stop()
|
||||||
|
|
||||||
def start_pywallet():
|
def start_pywallet():
|
||||||
a=Popen("python "+pyw_path+"/"+pyw_filename+" --web --port "+str(webport)+" --wait 2", shell=True, bufsize=-1, stdout=PIPE).stdout
|
a=Popen("python "+pyw_path+"/"+pyw_filename+" --web --port "+str(webport)+" --wait 3", shell=True, bufsize=-1, stdout=PIPE).stdout
|
||||||
a.close()
|
a.close()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user