Change config file name

This commit is contained in:
Sebastian Robinson
2020-03-31 19:52:21 +01:00
parent e1c7c9dde5
commit f631396809
3 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ Work in progress…
Requirements:
* Transmission for Bitorrent
* A PleasureDome account
* A proper config.json file (see config.template.json)
* A proper PDMameUpdate.json file (see PDMameUpdate.template.json)
* Python3 with the libraries below
- feedparser
- transmission-clutch
@ -57,11 +57,11 @@ from urllib.parse import quote
def open_config_file():
"""Reads configuration from config.json file"""
"""Reads configuration from PDMameUpdate.json file"""
for loc in os.environ.get("PDMAMEUPDATE_CONF"), "/etc", os.path.expanduser("~"), os.curdir:
if loc is not None:
config_path = loc + '/config.json'
config_path = loc + '/PDMameUpdate.json'
if pathlib.Path(config_path).is_file():
config_file_loc = config_path
break