add src path

This commit is contained in:
2025-07-31 23:10:23 +02:00
parent acaad8a99f
commit 6ff97316dc
57 changed files with 50 additions and 42 deletions

View File

@@ -0,0 +1,20 @@
"""set configurations
"""
from configparser import ConfigParser
class Config:
def __init__(self):
c = ConfigParser()
c.read(["../env/db.ini"])
# DB setting
self.dbhost = c.get("db", "hostname")
self.dbport = c.getint("db", "port")
self.dbuser = c.get("db", "user")
self.dbpass = c.get("db", "password")
self.dbname = c.get("db", "dbName")
self.max_retries = c.getint("db", "maxRetries")