diff --git a/README.md b/README.md index 32905f7c..76ffabbb 100644 --- a/README.md +++ b/README.md @@ -121,11 +121,11 @@ sudo python3 setup.py install ```bash # System-wide configuration file : sudo mkdir /etc/archey4 -sudo cp archey/config.json /etc/archey4/config.json +sudo cp config.json /etc/archey4/config.json # User-specific configuration file : mkdir -p ~/.config/archey4 -cp archey/config.json ~/.config/archey4/config.json +cp config.json ~/.config/archey4/config.json ``` #### Step 4 (optional) : Standalone building @@ -185,7 +185,7 @@ python3 -m archey --help ## Configuration (optional) Since v4.3.0, Archey 4 **may** be "tweaked" a bit with external configuration. -You can place a [`config.json`](archey/config.json) file in these locations : +You can place a [`config.json`](config.json) file in these locations : 1. `/etc/archey4/config.json` (system preferences) 2. `~/.config/archey4/config.json` (user preferences) @@ -195,7 +195,7 @@ You can place a [`config.json`](archey/config.json) file in these locations : Alternatively, you may specify your own configuration file with the `-c` command-line option. -The [example file](archey/config.json) provided in this repository lists exhaustively the parameters you can set. +The [example file](config.json) provided in this repository lists exhaustively the parameters you can set. Below stand further descriptions for each available (default) option : diff --git a/archey/configuration.py b/archey/configuration.py index 8781a7d2..11f69b2e 100644 --- a/archey/configuration.py +++ b/archey/configuration.py @@ -30,7 +30,9 @@ def __init__(self, config_path=None): else: self._load_configuration('/etc/archey4/') self._load_configuration(os.path.expanduser('~/.config/archey4/')) - self._load_configuration(os.path.dirname(os.path.realpath(__file__))) + self._load_configuration( + os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir) + ) def get(self, key, default=None): """ diff --git a/archey/config.json b/config.json similarity index 100% rename from archey/config.json rename to config.json