Change config file name
This commit is contained in:
@ -20,7 +20,7 @@ Work in progress…
|
|||||||
Requirements:
|
Requirements:
|
||||||
* Transmission for Bitorrent
|
* Transmission for Bitorrent
|
||||||
* A PleasureDome account
|
* 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
|
* Python3 with the libraries below
|
||||||
- feedparser
|
- feedparser
|
||||||
- transmission-clutch
|
- transmission-clutch
|
||||||
@ -57,11 +57,11 @@ from urllib.parse import quote
|
|||||||
|
|
||||||
|
|
||||||
def open_config_file():
|
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:
|
for loc in os.environ.get("PDMAMEUPDATE_CONF"), "/etc", os.path.expanduser("~"), os.curdir:
|
||||||
if loc is not None:
|
if loc is not None:
|
||||||
config_path = loc + '/config.json'
|
config_path = loc + '/PDMameUpdate.json'
|
||||||
if pathlib.Path(config_path).is_file():
|
if pathlib.Path(config_path).is_file():
|
||||||
config_file_loc = config_path
|
config_file_loc = config_path
|
||||||
break
|
break
|
||||||
|
@ -7,7 +7,7 @@ versions are detected
|
|||||||

|

|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
You need to rename `config.template.json` to `config.json` and modify it with the proper information.
|
You need to rename `PDMameUpdate.template.json` to `PDMameUpdate.json` and modify it with the proper information.
|
||||||
|
|
||||||
You should have Python3 and a few libraries installed (see header in source code).
|
You should have Python3 and a few libraries installed (see header in source code).
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user