Skip to content

Feature implement config file override for webqueue2api configs #46

Conversation

campb303
Copy link
Collaborator

@campb303 campb303 commented Aug 2, 2021

No description provided.

…the root of the webqueue2api package directory and read the configurations from that file if so
…ains a queue_directory in the parser section
Copy link
Collaborator Author

@campb303 campb303 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Partial code here. Needs to be expanded.


config_parser_object = configparser.ConfigParser()
config_file_location = path.joinpath(path(sys.executable).parent.parent.parent, "webqueue2api_config")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename config_file_location to config_file_path and add file extension.

import webqueue2api.api

config_parser_object = configparser.ConfigParser()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename config_parser_object to config_parser

@campb303 campb303 merged commit f4f874e into staging Aug 2, 2021
@campb303 campb303 deleted the feature-implement-config-file-override-for-webqueue2api-configs branch August 2, 2021 23:24
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants