Updates for issue #580

Fixing issue where a file called out with -f was also in a configuration file_list would result in an exception.
This commit is contained in:
Jeremiah Leary 2021-05-11 09:05:18 -05:00
parent e7b9d00b6b
commit 74b1bfc8e8
1 changed files with 2 additions and 1 deletions

View File

@ -185,10 +185,11 @@ def update_command_line_arguments(commandLineArguments, configuration):
try:
lFileNames = glob.glob(utils.expand_filename(sFilename), recursive=True)
for sFileName in lFileNames:
if sFileName not in commandLineArguments:
if sFileName not in commandLineArguments.filename:
commandLineArguments.filename.append(sFileName)
except:
commandLineArguments.filename = glob.glob(utils.expand_filename(sFilename), recursive=True)
if 'local_rules' in configuration:
commandLineArguments.local_rules = utils.expand_filename(configuration['local_rules'])