27 |
# MS Windows support, many thanks to PH |
# MS Windows support, many thanks to PH |
28 |
IS_WINDOWS = (os.name == 'nt') |
IS_WINDOWS = (os.name == 'nt') |
29 |
|
|
30 |
|
IS_OSX = (os.uname()[0] == 'Darwin') |
31 |
|
|
32 |
########################## Determine options file ############################ |
########################## Determine options file ############################ |
33 |
# 1. command line |
# 1. command line |
34 |
# 2. scons/<hostname>_options.py |
# 2. scons/<hostname>_options.py |
383 |
except KeyError: |
except KeyError: |
384 |
pass |
pass |
385 |
|
|
386 |
|
if IS_OSX: |
387 |
|
try: |
388 |
|
env.PrependENVPath('DYLD_LIBRARY_PATH', os.environ['DYLD_LIBRARY_PATH']) |
389 |
|
except KeyError: |
390 |
|
pass |
391 |
|
|
392 |
|
|
393 |
# these shouldn't be needed |
# these shouldn't be needed |
394 |
#for key in 'C_INCLUDE_PATH','CPLUS_INCLUDE_PATH','LIBRARY_PATH': |
#for key in 'C_INCLUDE_PATH','CPLUS_INCLUDE_PATH','LIBRARY_PATH': |
395 |
# try: |
# try: |