Mercurial > repos > pieterlukasse > nist_wrapper
comparison nist_wrapper.py @ 6:e19a6fbcf1db
test
author | pieter.lukasse@wur.nl |
---|---|
date | Thu, 22 Jan 2015 21:52:00 +0100 |
parents | c3dc158717fc |
children | 165c22633081 |
comparison
equal
deleted
inserted
replaced
5:c3dc158717fc | 6:e19a6fbcf1db |
---|---|
128 subprocess.call(cmd) | 128 subprocess.call(cmd) |
129 | 129 |
130 | 130 |
131 timeSleeping = 0 | 131 timeSleeping = 0 |
132 # monitor process by checking state file: | 132 # monitor process by checking state file: |
133 while True or timeSleeping > 20: | 133 while True and timeSleeping < 20: |
134 # check if SRCREADY.TXT is there already: | 134 # check if SRCREADY.TXT is there already: |
135 if os.path.exists(file_to_monitor): | 135 if os.path.exists(file_to_monitor): |
136 break | 136 break |
137 time.sleep(2) | 137 time.sleep(2) |
138 timeSleeping =+ 2 | 138 timeSleeping =+ 2 |