comparison micropita_prepare.py @ 10:2f588c566849

Modified the invication of the commad using subprocess and modified tempfile
author george-weingart
date Tue, 06 May 2014 18:09:22 -0400
parents 4641f18651c3
children 1dcb00d567f7
comparison
equal deleted inserted replaced
9:4641f18651c3 10:2f588c566849
168 "-m " + results.MParameter + " " + \ 168 "-m " + results.MParameter + " " + \
169 "-n " + results.NSamples + " " +\ 169 "-n " + results.NSamples + " " +\
170 stratify_string + " " + \ 170 stratify_string + " " + \
171 results.inputname + " " +\ 171 results.inputname + " " +\
172 results.outputname 172 results.outputname
173 print os_command 173 ##print os_command
174 ###argsx = shlex.split(os_command) 174 argsx = shlex.split(os_command)
175 ####print argsx 175 print argsx
176 try: 176 try:
177 os.system(os_command) 177 ###os.system(os_command)
178 ######subprocess.check_call(argsx , shell=False) 178 subprocess.check_call(argsx , shell=False)
179 except: 179 except:
180 print "The call to micropita failed=============" 180 print "The call to micropita failed============="
181 sys.exit(0) 181 sys.exit(0)
182 182
183 183