diff options
Diffstat (limited to 'site_scons/site_tools/xcode.py')
-rw-r--r-- | site_scons/site_tools/xcode.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/site_scons/site_tools/xcode.py b/site_scons/site_tools/xcode.py index 5ddebb2e003..d4dbc23c8ef 100644 --- a/site_scons/site_tools/xcode.py +++ b/site_scons/site_tools/xcode.py @@ -1,12 +1,16 @@ import os + def exists(env): - return env.Detect('xcrun') + return env.Detect("xcrun") + def generate(env): if not exists(env): return - if 'DEVELOPER_DIR' in os.environ: - env['ENV']['DEVELOPER_DIR'] = os.environ['DEVELOPER_DIR'] - print("NOTE: Xcode detected; propagating DEVELOPER_DIR from shell environment to subcommands") + if "DEVELOPER_DIR" in os.environ: + env["ENV"]["DEVELOPER_DIR"] = os.environ["DEVELOPER_DIR"] + print( + "NOTE: Xcode detected; propagating DEVELOPER_DIR from shell environment to subcommands" + ) |