From 951376c4070e16940cceb68ca3a1e9b29ccccbc2 Mon Sep 17 00:00:00 2001 From: Muhammad Arslan Date: Wed, 6 Nov 2024 21:31:43 +0500 Subject: [PATCH] fix: path import is fixed After upgrading path-py from 9.1 to 12.5.0 they upgrade the import as well from p to capital P as import path from Path --- notesserver/settings/yaml_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notesserver/settings/yaml_config.py b/notesserver/settings/yaml_config.py index 38262cc2..c1a8c17d 100644 --- a/notesserver/settings/yaml_config.py +++ b/notesserver/settings/yaml_config.py @@ -2,7 +2,7 @@ import yaml from django.core.exceptions import ImproperlyConfigured -from path import path +from path import Path from notesserver.settings.logger import build_logging_config @@ -21,7 +21,7 @@ if not EDXNOTES_CONFIG_ROOT: raise ImproperlyConfigured("EDXNOTES_CONFIG_ROOT must be defined in the environment.") -CONFIG_ROOT = path(EDXNOTES_CONFIG_ROOT) +CONFIG_ROOT = Path(EDXNOTES_CONFIG_ROOT) with open(CONFIG_ROOT / "edx_notes_api.yml") as yaml_file: config_from_yaml = yaml.safe_load(yaml_file)