diff options
-rw-r--r-- | site_scons/site_init.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/site_scons/site_init.py b/site_scons/site_init.py index 4a94a9c..490a1db 100644 --- a/site_scons/site_init.py +++ b/site_scons/site_init.py @@ -37,6 +37,7 @@ for the target environment. """ import __builtin__ +import os import sys import SCons @@ -280,7 +281,7 @@ def BuildEnvironments(environments): # TODO(bradnelson): this hack is not in mainline. # Need to unify how to do this sort of thing. c_dir = str(c_dir) - if c_dir[0] in ['\\', '/']: + if os.path.isabs(c_dir): build_dir = None else: build_dir = '$OBJ_ROOT/' + c_dir |