Skip to content

Commit

Permalink
fix: path import is fixed
Browse files Browse the repository at this point in the history
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
  • Loading branch information
marslanabdulrauf committed Nov 6, 2024
1 parent ded5278 commit 951376c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notesserver/settings/yaml_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand Down

0 comments on commit 951376c

Please sign in to comment.