Commit Graph

43 Commits (7d5415c2017440c05046eb53c79f0c9e292235a6)

Author SHA1 Message Date
Mike Fährmann 9c65db2a92
consistent 'with open(…) as fp:' syntax
3 months ago
Mike Fährmann 3fc2e61818
add '--config-open' and '--config-status' (#5713)
3 months ago
Mike Fährmann 92f98e6f5e
'sys.exit' -> 'SystemExit'
1 year ago
Mike Fährmann 410f783a33
implement 'subconfigs' option (#4440)
1 year ago
Mike Fährmann 076380e079
remove '*' indicating keyword-only arguments
1 year ago
Mike Fährmann 57cf942bb1
[config] include exception type in error message
1 year ago
Mike Fährmann 075c965512
add '--config-create' command-line option
2 years ago
Mike Fährmann 26d06e0bb2
move executable check into util.py
2 years ago
Mike Fährmann de2f35d068
simplify config.load()
2 years ago
Mike Fährmann 632d5d7745
allow loading config files in TOML format with --config-toml
2 years ago
Mike Fährmann dd884b02ee
replace json.loads with direct calls to JSONDecoder.decode
2 years ago
Mike Fährmann 46d811bac0
add loaded config files to debug output
2 years ago
Mike Fährmann 3a7c3ff138
support XDG_CONFIG_HOME (closes #1545)
3 years ago
Mike Fährmann 392d022b04
implement 'config.accumulate()' (#994)
4 years ago
Mike Fährmann 53cc498d9c
improve config lookup when there are multiple possible locations
4 years ago
Mike Fährmann da22ea8ced
use %APPDATA%\gallery-dl for config/cache on Windows
4 years ago
Mike Fährmann 3201fe3521
add global SENTINEL object
4 years ago
Mike Fährmann c8787647ed
add global WINDOWS bool
4 years ago
Mike Fährmann 300264f676
read config files from PyInstaller exe directory (closes #682)
5 years ago
Mike Fährmann c4702ec9b6
simplify some logging calls
5 years ago
Mike Fährmann b5c964332b
improve config.py test coverage
5 years ago
Mike Fährmann f5604492c3
update interface of config functions
5 years ago
Mike Fährmann 1578013efc
remove unused default config path
6 years ago
Mike Fährmann 176b7253a1
update function signature for config.load()
6 years ago
Mike Fährmann 513d807632
explicitly open config files as utf-8
6 years ago
Mike Fährmann b50bdbf3d7
change config specifiers in input file format
7 years ago
Mike Fährmann 057668e17e
extend input-file format with per-URL config and comments
7 years ago
Mike Fährmann ea8ca4cfa4
add 'util.expand_path()'
7 years ago
Mike Fährmann b319f4bab3
smaller code and text changes
7 years ago
Mike Fährmann 004456d5d5
properly update the config-dictionary
7 years ago
Mike Fährmann e3212dd98f
fix some smaller stuff
8 years ago
Mike Fährmann e4b3077168
improve config module
8 years ago
Mike Fährmann 27ae152f57
use logging to report errors
8 years ago
Mike Fährmann 0cfe51dc78
add '--config-yaml' option
8 years ago
Mike Fährmann 4f123b8513
code adjustments according to pep8
8 years ago
Mike Fährmann 7c8fae62f6
update default config file paths
8 years ago
Mike Fährmann 91c446805b
replace platform.system() with os.name
8 years ago
Mike Fährmann 2418bfe91b
replace JSONDecodeError with ValueError
8 years ago
Mike Fährmann 3bcc697853
change default config paths
8 years ago
Mike Fährmann b55870909c
properly implement -c,--config option
9 years ago
Mike Fährmann bea33ae9cb implement config.setdefault
9 years ago
Mike Fährmann 2026223ed1 change argument format for config-calls
9 years ago
Mike Fährmann 9986a5ffb5 json-based config module
9 years ago