Config: Format and organize
Rename some methods and change comments. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
cb91670c7a
commit
1c9991f79e
2 changed files with 3 additions and 6 deletions
|
|
@ -16,10 +16,7 @@ class TabbyConfig:
|
|||
developer: dict = {}
|
||||
embeddings: dict = {}
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
def load_config(self, arguments: Optional[dict] = None):
|
||||
def load(self, arguments: Optional[dict] = None):
|
||||
"""load the global application config"""
|
||||
|
||||
# config is applied in order of items in the list
|
||||
|
|
@ -87,5 +84,5 @@ class TabbyConfig:
|
|||
pass
|
||||
|
||||
|
||||
# Create an empty instance of the shared var to make sure nothing breaks
|
||||
# Create an empty instance of the config class
|
||||
config: TabbyConfig = TabbyConfig()
|
||||
|
|
|
|||
2
main.py
2
main.py
|
|
@ -110,7 +110,7 @@ def entrypoint(arguments: Optional[dict] = None):
|
|||
arguments = convert_args_to_dict(parser.parse_args(), parser)
|
||||
|
||||
# load config
|
||||
config.load_config(arguments)
|
||||
config.load(arguments)
|
||||
|
||||
if do_export_openapi:
|
||||
openapi_json = export_openapi()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue