if WX_CONFIG is set in the environment then use that instead of defaulting to "wx-config"

This commit is contained in:
Robin Dunn
2020-03-20 15:25:34 -07:00
parent 8e2627e8e3
commit 9b122237c9
2 changed files with 14 additions and 8 deletions

View File

@@ -400,7 +400,10 @@ class Configuration(object):
"""
# if WX_CONFIG hasn't been set to an explicit value then construct one.
if self.WX_CONFIG is None:
self.WX_CONFIG='wx-config'
if 'WX_CONFIG' in os.environ:
self.WX_CONFIG = os.environ['WX_CONFIG']
else:
self.WX_CONFIG='wx-config'
port = self.WXPORT
if port == "x11":
port = "x11univ"