From 83aec4d248ad8892fc8003d181d5d6e5e53ff36a Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Mon, 1 Jun 2015 14:03:45 +0200 Subject: [PATCH] Script execution --- script/Check Linearity LS.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/Check Linearity LS.py b/script/Check Linearity LS.py index e8f4665..6d5b061 100644 --- a/script/Check Linearity LS.py +++ b/script/Check Linearity LS.py @@ -1,9 +1,9 @@ #Script imported from: Check Linearity LS.xml #Pre-actions -p = subproccess.Popen('/bin/sleep 2' +, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) -p.communicate() -ret = p.returncode +#p = subproccess.Popen('/bin/sleep 2' +, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) +#p.communicate() +#ret = p.returncode if ret <> true: raise Exception('Script returned with an exit value not equal to 0') caput('PO2TC-NCS-LS:MOTOR.VELO', '50')