Handle the case where we can not execute a file the tempdir

pull/323/head
Thibault Saunier 9 years ago
parent 33b2a414e9
commit b15aa49af2
  1. 5
      compilers.py

@ -406,7 +406,12 @@ int someSymbolHereJustForFun;
cmdlist = self.exe_wrapper + [exename] cmdlist = self.exe_wrapper + [exename]
else: else:
cmdlist = exename cmdlist = exename
try:
pe = subprocess.Popen(cmdlist, stdout=subprocess.PIPE, stderr=subprocess.PIPE) pe = subprocess.Popen(cmdlist, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
except Exception as e:
mlog.debug('Could not run: %s (error: %s)\n' % (cmdlist, e))
return RunResult(False)
(so, se) = pe.communicate() (so, se) = pe.communicate()
so = so.decode() so = so.decode()
se = se.decode() se = se.decode()

Loading…
Cancel
Save