Skip to content

Commit

Permalink
Merge pull request #451 from marslanabdulrauf/marslan/6018-path-impor…
Browse files Browse the repository at this point in the history
…t-fix

fix: path import is fixed
  • Loading branch information
UsamaSadiq authored Nov 7, 2024
2 parents ded5278 + 951376c commit 30c4ede
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 30c4ede

Please sign in to comment.