diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-01-29 23:53:43 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-01-29 23:53:43 +0000 |
| commit | 00949e21e0ba292bd96a1ff91f40b77d640a50ef (patch) | |
| tree | c80fb19be941de6d9dce23e2d4f560244c8de2ef | |
| parent | e1eb3e861b93226e5fbc196efccdf920132d9b7d (diff) | |
Centos 6's python does not have subprocess.check_output
| -rw-r--r-- | src/wx/wscript | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/wscript b/src/wx/wscript index 3be3a6763..24c2b8b5e 100644 --- a/src/wx/wscript +++ b/src/wx/wscript @@ -171,7 +171,7 @@ def configure(conf): conf.env.STLIBPATH_WXWIDGETS = stlib_paths conf.in_msg = 1 - wx_version = subprocess.check_output([wx_config, '--version']).decode('UTF-8') + wx_version = subprocess.Popen([wx_config, '--version'], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0].decode('UTF-8') conf.in_msg = 0 if not wx_version.startswith('3.0.'): conf.fatal('wxwidgets version 3.0.x is required; %s found' % wx_version) |
