diff options
author | Steven Knight <knight@baldmt.com> | 2003-01-25 08:23:44 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-01-25 08:23:44 (GMT) |
commit | fb4152bf88a71d44c6ec7627d63dae6b93ee348a (patch) | |
tree | 9c506726dc7fe09a5eea07927d2ec8d5a13e5cb9 /src/engine/SCons/Tool/PharLapCommon.py | |
parent | 9a87f34a20ea2f5ec420548a379b2818450325ef (diff) | |
download | SCons-fb4152bf88a71d44c6ec7627d63dae6b93ee348a.zip SCons-fb4152bf88a71d44c6ec7627d63dae6b93ee348a.tar.gz SCons-fb4152bf88a71d44c6ec7627d63dae6b93ee348a.tar.bz2 |
PharLap follow-on patch. (Charles Crain)
Diffstat (limited to 'src/engine/SCons/Tool/PharLapCommon.py')
-rw-r--r-- | src/engine/SCons/Tool/PharLapCommon.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/engine/SCons/Tool/PharLapCommon.py b/src/engine/SCons/Tool/PharLapCommon.py index ddcaba6..7f562c5 100644 --- a/src/engine/SCons/Tool/PharLapCommon.py +++ b/src/engine/SCons/Tool/PharLapCommon.py @@ -94,9 +94,17 @@ def addPathIfNotExists(env_dict, key, path, sep=os.pathsep): separated by tokens. The 'path' will get added to the list if it is not already there.""" try: - paths = string.split(env_dict[key], sep) + is_list = 1 + paths = env_dict[key] + if not SCons.Util.is_List(env_dict[key]): + paths = string.split(paths, sep) + is_list = 0 if not os.path.normcase(path) in map(os.path.normcase, paths): - env_dict[key] = string.join([ path ] + paths, sep) + paths = [ path ] + paths + if is_list: + env_dict[key] = paths + else: + env_dict[key] = string.join(paths, sep) except KeyError: env_dict[key] = path |