Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def setUp(self):
self.templates = read_templates()
self.parser = create_parser()
def __init__(self, popfield, excludeDefaultFolder, templateFolder,
fieldDict, gui, factx):
self.parser = create_parser()
self.fieldValueDict = fieldDict
self.gui = gui
self.factx = factx
self.popfield = popfield
self.outputFile = '.load/invoice2data_output.json'
self.parseList = ['--output-format',
'json',
'--output-name',
self.outputFile,
'--exclude-built-in-templates',
'--template-folder',
templateFolder,
self.gui.fileName[0]]
if not excludeDefaultFolder:
self.parseList.remove('--exclude-built-in-templates')
if templateFolder is None: