diff options
author | Ibrahn Sahir <ibrahn.sahir@gmail.com> | 2018-11-14 12:25:50 +0000 |
---|---|---|
committer | Ibrahn Sahir <ibrahn.sahir@gmail.com> | 2018-11-14 12:25:50 +0000 |
commit | 4c90a66e74909595c1f1e8053c2cd74c2a2be035 (patch) | |
tree | 4f441c3252d5cadeb8c056b3270ace643ed2d4c8 | |
parent | 37c5aa108499104dc417d6b983cb64bcf05f35c2 (diff) |
Fix gcc version check when running scons in python 3.
-rw-r--r-- | platform/x11/detect.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py index e257a20bdd..524c8448bc 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -1,6 +1,7 @@ import os import platform import sys +from compat import decode_utf8 def is_active(): @@ -154,6 +155,7 @@ def configure(env): import subprocess proc = subprocess.Popen([env['CXX'], '--version'], stdout=subprocess.PIPE) (stdout, _) = proc.communicate() + stdout = decode_utf8(stdout) match = re.search('[0-9][0-9.]*', stdout) if match is not None: version = match.group().split('.') |