Skip to content

Commit

Permalink
Merge pull request #101 from winglessraven/winglessraven-patch-1
Browse files Browse the repository at this point in the history
Fix logging
  • Loading branch information
winglessraven authored Jun 8, 2024
2 parents 214c92d + 928cafa commit 0965c65
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions install_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ def update_amp_config(instance_path: Path) -> None:
plugins_list = eval(plugins)
if plugin_name not in plugins_list:
plugins_list.append(plugin_name)
lines[i] = 'AMP.LoadPlugins={}\n'.format(str(plugins_list))
with open(config_path, 'w') as f:
f.writelines(lines)
logger.info(f'Updated AMP.LoadPlugins in {config_path}')
lines[i] = 'AMP.LoadPlugins={}\n'.format(str(plugins_list))
with open(config_path, 'w') as f:
f.writelines(lines)
logger.info(f'Updated AMP.LoadPlugins in {config_path}')
else:
logger.info(f'{plugin_name} already in AMP.LoadPlugins')
break
else:
logger.info(f'{plugin_name} already in AMP.LoadPlugins')

def copy_dll_to_plugin_folder(instance_path: Path) -> None:
discordbot_plugin_dir = instance_path / plugin_dll_dir
Expand Down

0 comments on commit 0965c65

Please sign in to comment.