mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2026-04-13 11:03:31 +00:00
add _internal/configs to config paths.
vm-compact dirs now override _internal/config upd README TOML Files section
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user