File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed
code_annotations/contrib/config Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change 3
3
"""
4
4
import os
5
5
6
- import pkg_resources
6
+ import importlib_resources
7
7
8
- FEATURE_TOGGLE_ANNOTATIONS_CONFIG_PATH = pkg_resources .resource_filename (
9
- "code_annotations" ,
10
- os .path .join ("contrib" , "config" , "feature_toggle_annotations.yaml" ),
11
- )
12
- SETTING_ANNOTATIONS_CONFIG_PATH = pkg_resources .resource_filename (
13
- "code_annotations" ,
14
- os .path .join ("contrib" , "config" , "setting_annotations.yaml" ),
15
- )
16
- OPENEDX_EVENTS_ANNOTATIONS_CONFIG_PATH = pkg_resources .resource_filename (
17
- "code_annotations" ,
18
- os .path .join ("contrib" , "config" , "openedx_events_annotations.yaml" ),
19
- )
8
+ FEATURE_TOGGLE_ANNOTATIONS_CONFIG_PATH = importlib_resources .files (
9
+ "code_annotations" ) / os .path .join ("contrib" , "config" , "feature_toggle_annotations.yaml" )
10
+
11
+ SETTING_ANNOTATIONS_CONFIG_PATH = importlib_resources .files (
12
+ "code_annotations" ) / os .path .join ("contrib" , "config" , "setting_annotations.yaml" )
13
+
14
+ OPENEDX_EVENTS_ANNOTATIONS_CONFIG_PATH = importlib_resources .files (
15
+ "code_annotations" ) / os .path .join ("contrib" , "config" , "openedx_events_annotations.yaml" )
You can’t perform that action at this time.
0 commit comments