Added fix for TeX includes with same name as subdirs.
[scons.git] / 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)