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]
else:
cmdlist = exename
try:
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 = so.decode()
se = se.decode()

Loading…
Cancel
Save