Impiment set_conf.

This function updates the config file being used by the script.
This commit is contained in:
efrick 2024-10-16 11:52:39 -04:00
parent e73e27b954
commit 320bdfaa92
2 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,7 @@ option_set.add_argument('--version', '-v', action='version', version=jls_extract
cmd_options = option_set.parse_args()
config = gaa_conf().conf
config = gaa_conf.set_conf(config, "./config_wrong.ini")
music_path = config['music']['dir']
ftv_api_key = config['fanart_tv']['api_key']

View File

@ -14,3 +14,6 @@ class gaa_conf:
def get():
return gaa_conf
def set_conf(self, conf_path):
self.read(conf_path)
return self