diff options
Diffstat (limited to 'SCons/Environment.py')
-rw-r--r-- | SCons/Environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SCons/Environment.py b/SCons/Environment.py index 61128af..312530a 100644 --- a/SCons/Environment.py +++ b/SCons/Environment.py @@ -1615,7 +1615,7 @@ class Base(SubstitutionEnvironment): prefix = self.subst('$'+prefix) for path in paths: - dir,name = os.path.split(str(path)) + name = os.path.basename(str(path)) if name[:len(prefix)] == prefix and name[-len(suffix):] == suffix: return path |