From c92913977f17839db50ddd561c1e7fa5a145bd3c Mon Sep 17 00:00:00 2001 From: "bradnelson@chromium.org" Date: Wed, 29 Oct 2008 22:54:44 +0000 Subject: 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 --- site_scons/site_init.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'site_scons') 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 -- cgit v1.1