that was a stupid place to an if.

This commit is contained in:
clinton-hall 2014-04-10 14:50:43 +09:30
commit a273f9687f

View file

@ -88,7 +88,7 @@ def main(inputDirectory, inputName, inputCategory, inputHash, inputID):
if single: if single:
dirnames[:] = [] dirnames[:] = []
filenames[:] = [filename] # we just want to work with this one file if single = True filenames[:] = [filename] # we just want to work with this one file if single = True
Logger.debug("MAIN: Found %s files in %s", str(len(filenames)), dirpath)if Logger.debug("MAIN: Found %s files in %s", str(len(filenames)), dirpath)
for file in filenames: for file in filenames:
filePath = os.path.join(dirpath, file) filePath = os.path.join(dirpath, file)
fileName, fileExtension = os.path.splitext(file) fileName, fileExtension = os.path.splitext(file)