5549 pattern |
5549 pattern |
5550 for pattern, filetype in self.__pdata["FILETYPES"].items() |
5550 for pattern, filetype in self.__pdata["FILETYPES"].items() |
5551 if filetype == "__IGNORE__" |
5551 if filetype == "__IGNORE__" |
5552 ] |
5552 ] |
5553 |
5553 |
5554 dirs = self.subdirs[:] |
5554 dirs = [""] if recursiveSearch else self.subdirs[:] + [""] |
5555 for directory in dirs: |
5555 for directory in dirs: |
5556 skip = False |
5556 skip = False |
5557 for ignore_pattern in ignore_patterns: |
5557 for ignore_pattern in ignore_patterns: |
5558 if fnmatch.fnmatch(directory, ignore_pattern): |
5558 if fnmatch.fnmatch(directory, ignore_pattern): |
5559 skip = True |
5559 skip = True |
5572 else "*.ts" |
5572 else "*.ts" |
5573 ) |
5573 ) |
5574 binpattern = self.__binaryTranslationFile(pattern) |
5574 binpattern = self.__binaryTranslationFile(pattern) |
5575 for ns in newSources: |
5575 for ns in newSources: |
5576 # ignore hidden files and directories |
5576 # ignore hidden files and directories |
5577 if ns.startswith("."): |
5577 if ns.startswith(".") or ns == "__pycache__": |
5578 continue |
|
5579 if ( |
|
5580 OSUtilities.isWindowsPlatform() |
|
5581 and os.path.isdir(os.path.join(curpath, ns)) |
|
5582 and ns.startswith("_") |
|
5583 ): |
|
5584 # dot net hack |
|
5585 continue |
5578 continue |
5586 |
5579 |
5587 # set fn to project relative name |
5580 # set fn to project relative name |
5588 # then reset ns to fully qualified name for insertion, |
5581 # then reset ns to fully qualified name for insertion, |
5589 # possibly. |
5582 # possibly. |