def isDirty(xmlTree, absXmlPath, absSourcePath, absHeaderPath) : ''' Glob all source files and check their last-modified time against the source/header path sources. ''' if util.fileVersionDirty(absSourcePath, Version) or util.fileVersionDirty(absHeaderPath, Version) : return True srcTime = os.path.getmtime(absSourcePath) hdrTime = os.path.getmtime(absHeaderPath) shdFiles = gatherShaderSources(xmlTree.getroot(), absXmlPath) for shdFile in shdFiles : shdTime = os.path.getmtime(shdFile) if shdTime > srcTime or shdTime > hdrTime : return True return False
def isDirty(xmlTree, absXmlPath, absSourcePath, absHeaderPath) : return util.fileVersionDirty(absSourcePath, Version) or util.fileVersionDirty(absHeaderPath, Version)
def isDirty(xmlTree, absXmlPath, absSourcePath, absHeaderPath): return util.fileVersionDirty(absSourcePath, Version) or util.fileVersionDirty( absHeaderPath, Version)