mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2026-04-18 05:23:31 +00:00
updates to gui to match changes to interfaces
updates to gui to match changes to interfaces now packaged with poetry and on pypi
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import toml
|
||||
from pathlib import Path
|
||||
|
||||
import tomllib
|
||||
|
||||
configuration = {}
|
||||
|
||||
config_path = [Path.cwd() / "configs"]
|
||||
@@ -11,8 +12,9 @@ for path in config_path:
|
||||
for filename in filenames:
|
||||
name = filename.with_suffix("").stem
|
||||
try:
|
||||
configs[name] = toml.load(filename)
|
||||
except toml.TomlDecodeError:
|
||||
with open(filename, "rb") as f:
|
||||
configs[name] = tomllib.load(f)
|
||||
except tomllib.TOMLDecodeError:
|
||||
print(f"Invalid TOML profile: configs/{filename.stem}")
|
||||
|
||||
for name, cfg in configs.items():
|
||||
|
||||
Reference in New Issue
Block a user