txtv

Swiss text tv in the terminal
git clone https://git.in0rdr.ch/txtv.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

commit 48c805e409026b36cdf7b61e43e4239471da6141
parent edf56f058244d7027096cbaed225bac4de1a0e56
Author: Isak Lindhé <isak.e.lindhe@gmail.com>
Date:   Wed, 20 Mar 2019 13:38:47 +0100

better config name bc. highlighting in editors

Diffstat:
Mtxtv/config.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/txtv/config.py b/txtv/config.py @@ -2,8 +2,9 @@ from pathlib import Path import configparser CONFIG_DIR = Path.home() / '.config' / 'txtv' +CONFIG_DEFAULT_PATH = CONFIG_DIR / 'txtv.cfg' -def get_or_gen_config(config_path: Path = CONFIG_DIR / 'config'): +def get_or_gen_config(config_path: Path = CONFIG_DEFAULT_PATH): cfg = configparser.ConfigParser() if config_path.exists(): cfg.read_file(open(config_path, 'r'))