summaryrefslogtreecommitdiffstats
path: root/site_scons
diff options
context:
space:
mode:
authorbradnelson@chromium.org <bradnelson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-29 22:54:44 +0000
committerbradnelson@chromium.org <bradnelson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-29 22:54:44 +0000
commitc92913977f17839db50ddd561c1e7fa5a145bd3c (patch)
tree4953d46568250728edd27a063cda2badfd0d79b8 /site_scons
parent544e50602d5f0f75810df55b5de6d2f578e31cdb (diff)
downloadchromium_src-c92913977f17839db50ddd561c1e7fa5a145bd3c.zip
chromium_src-c92913977f17839db50ddd561c1e7fa5a145bd3c.tar.gz
chromium_src-c92913977f17839db50ddd561c1e7fa5a145bd3c.tar.bz2
Fixing handling of absolute paths in site_init.py to handle windows correctly.
Review URL: http://codereview.chromium.org/8897 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4180 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'site_scons')
-rw-r--r--site_scons/site_init.py3
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