Skip to content

Commit

Permalink
Merge pull request #135 from edly-io/maq/114
Browse files Browse the repository at this point in the history
#114: Migrate to importlib
  • Loading branch information
bmtcril authored Dec 16, 2024
2 parents 680ab1f + 47adcbf commit 33f0a32
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions code_annotations/contrib/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@
"""
import os

import pkg_resources
import importlib_resources

FEATURE_TOGGLE_ANNOTATIONS_CONFIG_PATH = pkg_resources.resource_filename(
"code_annotations",
os.path.join("contrib", "config", "feature_toggle_annotations.yaml"),
)
SETTING_ANNOTATIONS_CONFIG_PATH = pkg_resources.resource_filename(
"code_annotations",
os.path.join("contrib", "config", "setting_annotations.yaml"),
)
OPENEDX_EVENTS_ANNOTATIONS_CONFIG_PATH = pkg_resources.resource_filename(
"code_annotations",
os.path.join("contrib", "config", "openedx_events_annotations.yaml"),
)
FEATURE_TOGGLE_ANNOTATIONS_CONFIG_PATH = importlib_resources.files(
"code_annotations") / os.path.join("contrib", "config", "feature_toggle_annotations.yaml")

SETTING_ANNOTATIONS_CONFIG_PATH = importlib_resources.files(
"code_annotations") / os.path.join("contrib", "config", "setting_annotations.yaml")

OPENEDX_EVENTS_ANNOTATIONS_CONFIG_PATH = importlib_resources.files(
"code_annotations") / os.path.join("contrib", "config", "openedx_events_annotations.yaml")

0 comments on commit 33f0a32

Please sign in to comment.