mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
Ensure setup.h was found before trying to open it
This commit is contained in:
@@ -589,6 +589,10 @@ class Configuration(object):
|
||||
return None
|
||||
|
||||
setup = _find_setup()
|
||||
if setup is None:
|
||||
msg("WARNING: Unable to find setup.h in {}, assuming {} is not available.".format(build_dir, flag))
|
||||
return False
|
||||
|
||||
with open(setup, 'rt') as f:
|
||||
for line in f:
|
||||
if flag in line:
|
||||
|
||||
Reference in New Issue
Block a user