From ce61b2227201dc5cd7bf204aea13899bdec44239 Mon Sep 17 00:00:00 2001 From: Adriano da Luz <al08@c3sl.ufpr.br> Date: Wed, 30 Nov 2011 09:32:42 -0200 Subject: [PATCH] proinfodataAgent.py: Added code to pause the execution after call the updatePackage This pause in the script execution is necessary so that it won't continue running after the updatePackage is called, which will kill the proinfodataAgent to continue the update process. Signed-off-by: Adriano da Luz <al08@c3sl.ufpr.br> Acked-by: Klismann Smoger Mottin <ksm09@c3sl.ufpr.br> --- src/proinfodataAgent.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/proinfodataAgent.py b/src/proinfodataAgent.py index 7564ac7..c3102d8 100644 --- a/src/proinfodataAgent.py +++ b/src/proinfodataAgent.py @@ -187,6 +187,8 @@ def callUpdater(): updaterPath = "\"" + PROINFODATAPATH + "\\update\\updatePackage.exe" + "\"" args = "/S" proc = subprocess.Popen(updaterPath + args) + # Wait to be killed + out = proc.communicate() # ========================================== # Main program -- GitLab