Skip to content

Commit

Permalink
migrate old config
Browse files Browse the repository at this point in the history
  • Loading branch information
3ll3d00d committed Feb 6, 2021
1 parent c47253d commit 518bdc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ Install the pre-requisite python packages. Raspbian Buster had all but one neede
![Figure 5 – Example of installing python pre-requisites](./img/ezbeq-05.png)

2\. Setup the python environment by running the follow commands:
![Figure 6 – Example of preparing environment](./img/ezbeq-06.png)
```
mkdir python
cd python
python3 -m venv ezbeq
cd ezbeq
```
![Figure 6 – Example of preparing environment](./img/ezbeq-06.png)

3\. Start the install of the ezbeq application. The required python modules will be installed. Run the following commands:
```
Expand Down
6 changes: 5 additions & 1 deletion ezbeq/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ def __load_config(self):
if os.path.exists(config_path):
self.logger.warning("Loading config from " + config_path)
with open(config_path, 'r') as yml:
return yaml.load(yml, Loader=yaml.FullLoader)
cfg = yaml.load(yml, Loader=yaml.FullLoader)
if not cfg.get('minidspExe', None) and not cfg.get('htp1', None):
cfg['minidspExe'] = 'minidsp'
self.__store_config(cfg, config_path)
return cfg
default_config = self.load_default_config()
self.__store_config(default_config, config_path)
return default_config
Expand Down

0 comments on commit 518bdc7

Please sign in to comment.