comparison micropita_prepare.py @ 9:4641f18651c3

Updated the os.command
author george-weingart
date Tue, 06 May 2014 17:34:57 -0400
parents da693b03b582
children 2f588c566849
comparison
equal deleted inserted replaced
8:da693b03b582 9:4641f18651c3
151 results.outputname 151 results.outputname
152 #print os_command 152 #print os_command
153 os.system(os_command) 153 os.system(os_command)
154 154
155 155
156 ######"/tools/micropita/" + \ 156 ######"/tools/micropita/" + \ 1234
157 157
158 print "Before invoking the call" 158 print "Before invoking the call 1234"
159 print root_dir
159 160
160 if results.MParameter == "representative"\ 161 if results.MParameter == "representative"\
161 or results.MParameter == "diverse"\ 162 or results.MParameter == "diverse"\
162 or results.MParameter == "extreme": 163 or results.MParameter == "extreme":
163 os_command = "python " + \ 164 os_command = "python " + \
168 "-n " + results.NSamples + " " +\ 169 "-n " + results.NSamples + " " +\
169 stratify_string + " " + \ 170 stratify_string + " " + \
170 results.inputname + " " +\ 171 results.inputname + " " +\
171 results.outputname 172 results.outputname
172 print os_command 173 print os_command
173 argsx = shlex.split(os_command) 174 ###argsx = shlex.split(os_command)
174 print argsx 175 ####print argsx
175 try: 176 try:
176 os.system(os_command) 177 os.system(os_command)
177 ######subprocess.check_call(argsx , shell=False) 178 ######subprocess.check_call(argsx , shell=False)
178 except: 179 except:
179 print "The call to micropita failed=============" 180 print "The call to micropita failed============="