configs -> config

This commit is contained in:
Kiryl
2022-11-15 17:47:27 +03:00
parent b651d6d396
commit b2491d0195
4 changed files with 3 additions and 3 deletions

View File

@@ -78,7 +78,7 @@ def server_run():
try: try:
folder_path = os.path.dirname(os.path.abspath(__file__)) folder_path = os.path.dirname(os.path.abspath(__file__))
config_path = Path(os.path.join( config_path = Path(os.path.join(
folder_path, "configs/queue_config.json")) folder_path, "config/queue_config.json"))
with open(config_path, "r") as f: with open(config_path, "r") as f:
conf_param = json.load(f) conf_param = json.load(f)

View File

@@ -42,7 +42,7 @@ class Access:
def set_credentials(self, url: str): def set_credentials(self, url: str):
folder_path: str = os.path.dirname( folder_path: str = os.path.dirname(
os.path.dirname(os.path.abspath(__file__))) os.path.dirname(os.path.abspath(__file__)))
config_path: str = os.path.join(folder_path, "configs/api_config.json") config_path: str = os.path.join(folder_path, "config/api_config.json")
with open(config_path, "r") as f: with open(config_path, "r") as f:
params: Dict[str, str] = json.load(f) params: Dict[str, str] = json.load(f)

View File

@@ -20,7 +20,7 @@ def check_dir(dir_path: str):
if __name__ == "__main__": if __name__ == "__main__":
folders = parse_args().folders folders = parse_args().folders
if not folders: if not folders:
folders = ["books/epub", "books/docx", "books/html", "books/json", "logs", "configs"] folders = ["books/epub", "books/docx", "books/html", "books/json", "logs", "config"]
folder_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) folder_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
folders = [os.path.join(folder_path, folder) for folder in folders] folders = [os.path.join(folder_path, folder) for folder in folders]