comparison nist_wrapper.py @ 10:bde3e4dc4476

fix
author pieter.lukasse@wur.nl
date Fri, 23 Jan 2015 09:42:18 +0100
parents 8c20185752da
children 3a69874edaf7
comparison
equal deleted inserted replaced
9:8c20185752da 10:bde3e4dc4476
132 132
133 133
134 timeSleeping = 0 134 timeSleeping = 0
135 # monitor process by checking state file: 135 # monitor process by checking state file:
136 utils.log_message(log_file, "monitoring SRCREADY.TXT...") 136 utils.log_message(log_file, "monitoring SRCREADY.TXT...")
137 while True and timeSleeping < 20: 137 while timeSleeping < 20:
138 # check if SRCREADY.TXT is there already: 138 # check if SRCREADY.TXT is there already:
139 if os.path.exists(file_to_monitor): 139 if os.path.exists(file_to_monitor):
140 break 140 break
141 time.sleep(2) 141 time.sleep(2)
142 timeSleeping =+ 2 142 timeSleeping = timeSleeping+2
143 143
144 # kill process: 144 # kill process:
145 #p.terminate() - not needed, nistm$ will terminate...nistms.exe is the one that 145 #p.terminate() - not needed, nistm$ will terminate...nistms.exe is the one that
146 #stays open...and orphan..killing it: 146 #stays open...and orphan..killing it:
147 147