From f6313968096397b3fbdc9ae0740fbeb7acc329f7 Mon Sep 17 00:00:00 2001 From: Sebastian Robinson Date: Tue, 31 Mar 2020 19:52:21 +0100 Subject: [PATCH] Change config file name --- PDMameUpdate.py | 6 +++--- config.template.json => PDMameUpdate.template.json | 0 README.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename config.template.json => PDMameUpdate.template.json (100%) diff --git a/PDMameUpdate.py b/PDMameUpdate.py index e7ab545..c2310e5 100755 --- a/PDMameUpdate.py +++ b/PDMameUpdate.py @@ -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 diff --git a/config.template.json b/PDMameUpdate.template.json similarity index 100% rename from config.template.json rename to PDMameUpdate.template.json diff --git a/README.md b/README.md index 436ca6b..6277ea2 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ versions are detected ![Sample output](https://djib.fr/djib/PDMameUpdate/raw/branch/master/screenshot.png) ## 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).