add _internal/configs to config paths.

vm-compact dirs now override _internal/config

upd README TOML Files section
This commit is contained in:
2025-01-22 16:30:06 +00:00
parent ae200068d0
commit cb00de36f0
2 changed files with 19 additions and 15 deletions

View File

@@ -12,14 +12,14 @@ configuration = {}
def get_configpath():
configpaths = [
for pn in (
Path.home() / '.config' / 'vm-compact',
Path.home() / 'Documents' / 'Voicemeeter' / 'vm-compact',
Path.cwd() / '_internal' / 'configs',
Path.cwd() / 'configs',
Path.home() / '.config' / 'vm-compact' / 'configs',
Path.home() / 'Documents' / 'Voicemeeter' / 'configs',
]
for configpath in configpaths:
if configpath.exists():
return configpath
):
if pn.exists():
return pn
if configpath := get_configpath():