Streamline fetching WX_CONFIG from the environment

This commit is contained in:
Robin Dunn
2020-03-23 14:50:52 -07:00
parent 9b122237c9
commit 52c00542eb
2 changed files with 3 additions and 7 deletions

View File

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