Added fix for TeX includes with same name as subdirs.
authorW. Trevor King <wking@drexel.edu>
Sat, 17 Apr 2010 07:28:50 +0000 (03:28 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 17 Apr 2010 07:29:20 +0000 (03:29 -0400)
src/engine/SCons/Tool/tex.py

index 3a84d21631f03a67e719975d68735710f5cd470c..05c58ac96da83b88446bf86f751e651ae3ea4d8e 100644 (file)
@@ -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)