This commit is contained in:
SpudGunMan
2024-10-10 17:25:40 -07:00
parent ae6dfa3321
commit 66d7f98716
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -34,6 +34,7 @@ except Exception as e:
if config.sections() == []:
print(f"web_reporter.cfg is empty or does not exist, generating default config")
shameWordList = shameWordList_str = ', '.join(shameWordList)
config['reporting'] = {'log_path': script_dir, 'w3_path': www_dir, 'multi_log_reader': 'True', 'shame_word_list': shameWordList}
with open(config_file, 'w') as configfile:
config.write(configfile)
+1
View File
@@ -35,6 +35,7 @@ except Exception as e:
if config.sections() == []:
print(f"web_reporter.cfg is empty or does not exist, generating default config")
shameWordList = shameWordList_str = ', '.join(shameWordList)
config['reporting'] = {'log_path': script_dir, 'w3_path': www_dir, 'multi_log_reader': 'True', 'shame_word_list': shameWordList}
with open(config_file, 'w') as configfile:
config.write(configfile)