feat: create config class to replace use of config file in application
This commit is contained in:
@@ -2,8 +2,12 @@ import darkdetect
|
||||
from omegaconf import OmegaConf
|
||||
from PyQt6 import QtGui
|
||||
import re
|
||||
config = OmegaConf.load("config.yaml")
|
||||
config = OmegaConf.load(f"{config.icon_path}/icons.yaml")
|
||||
|
||||
from config import Config
|
||||
|
||||
settings = Config("config/config.yaml")
|
||||
|
||||
config = OmegaConf.load(f"{settings.icon_path}/icons.yaml")
|
||||
|
||||
path = config.icon_path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user