pyadonis/classes/config.py

23 lines
540 B
Python
Raw Normal View History

2022-04-07 11:27:49 +00:00
from configparser import ConfigParser
class Config:
def __init__(self, path):
self.config = ConfigParser()
self.config.read(path)
@property
def crew_portal_base_url(self):
return self.config["ADONIS"]["CrewPortalBaseURL"]
2022-06-22 09:20:34 +00:00
@property
def integration_base_url(self):
return self.config["ADONIS"]["IntegrationBaseURL"]
2022-04-07 11:27:49 +00:00
@property
def login(self):
return self.config["ADONIS"]["Login"]
@property
def password(self):
2022-06-22 09:20:34 +00:00
return self.config["ADONIS"]["Password"]