diff options
| author | Thibault Saunier <tsaunier@gnome.org> | 2015-12-03 14:49:20 +0100 |
|---|---|---|
| committer | Thibault Saunier <tsaunier@gnome.org> | 2015-12-04 10:17:49 +0100 |
| commit | b15aa49af2c30921368cf6bf330919da476762eb (patch) | |
| tree | c9d7e6f3011a34aa8bc370969d7344adb046079e /compilers.py | |
| parent | 33b2a414e9f985da6e2149f4bab4512f00b400d0 (diff) | |
| download | meson-b15aa49af2c30921368cf6bf330919da476762eb.tar.gz | |
Handle the case where we can not execute a file the tempdir
Diffstat (limited to 'compilers.py')
| -rw-r--r-- | compilers.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compilers.py b/compilers.py index b205cd5fc..7907235d5 100644 --- a/compilers.py +++ b/compilers.py @@ -406,7 +406,12 @@ int someSymbolHereJustForFun; cmdlist = self.exe_wrapper + [exename] else: cmdlist = exename - pe = subprocess.Popen(cmdlist, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + 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() |
