From: W. Trevor King Date: Sat, 17 Apr 2010 07:28:50 +0000 (-0400) Subject: Added fix for TeX includes with same name as subdirs. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f27ed063be6a4703b3306a091ce7d5ed328eba98;p=scons.git Added fix for TeX includes with same name as subdirs. --- diff --git a/src/engine/SCons/Tool/tex.py b/src/engine/SCons/Tool/tex.py index 3a84d216..05c58ac9 100644 --- a/src/engine/SCons/Tool/tex.py +++ b/src/engine/SCons/Tool/tex.py @@ -150,7 +150,7 @@ def FindFile(name,suffixes,paths,env,requireExt=False): testName = os.path.join(path,name) if Verbose: print " look for '%s'" % testName - if os.path.exists(testName): + if os.path.exists(testName) and not os.path.isdir(testName): if Verbose: print " found '%s'" % testName return env.fs.File(testName)