Impiment set_conf.
This function updates the config file being used by the script.
This commit is contained in:
parent
e73e27b954
commit
320bdfaa92
@ -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']
|
||||
|
@ -14,3 +14,6 @@ class gaa_conf:
|
||||
|
||||
def get():
|
||||
return gaa_conf
|
||||
def set_conf(self, conf_path):
|
||||
self.read(conf_path)
|
||||
return self
|
||||
|
Loading…
x
Reference in New Issue
Block a user