implemented basis for config

This commit is contained in:
Hellow
2023-08-14 23:30:39 +02:00
parent aec62903e0
commit 31a7740760
4 changed files with 206 additions and 3 deletions

View File

@@ -1,6 +1,8 @@
from dynaconf import Dynaconf
from dynaconf import settings
from dynaconf.utils import object_merge
from .path_manager import LOCATIONS
# from .path_manager import LOCATIONS
"""
https://www.dynaconf.com/settings_files/
@@ -12,6 +14,27 @@ The concept is that I package a config file, with this programm, and then load i
Then I check if there is a config file at the LOCATIONS.CONFIG_FILE, and if yes they get merged
"""
settings = Dynaconf(
settings_files=[str(LOCATIONS.CONFIG_FILE)],
settings.happy_message = [
"Support the artist.",
"Star Me: https://github.com/HeIIow2/music-downloader",
"🏳️‍⚧️🏳️‍⚧️ Trans rights are human rights. 🏳️‍⚧️🏳️‍⚧️",
"🏳️‍⚧️🏳️‍⚧️ Trans women are women, trans men are men, and enbies are enbies. 🏳️‍⚧️🏳️‍⚧️",
"🏴‍☠️🏴‍☠️ Unite under one flag, fck borders. 🏴‍☠️🏴‍☠️",
"Join my Matrix Space: https://matrix.to/#/#music-kraken:matrix.org",
"Gotta love the BPJM ;-;",
"🏳️‍⚧️🏳️‍⚧️ Protect trans youth. 🏳️‍⚧️🏳️‍⚧️",
"Nonstop Progressive Marxism.",
]
dynacont_object = Dynaconf(
settings_files=[str(LOCATIONS.CONFIG_FILE)]
)
class Settings:
def __init__(self) -> None: