We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad54b9c commit c0f3a66Copy full SHA for c0f3a66
cubids/config.py
@@ -1,15 +1,13 @@
1
"""Functions for configuring CuBIDS."""
2
3
from pathlib import Path
4
-
+import importlib.resources as pkg_resources
5
import yaml
6
-from pkg_resources import resource_filename as pkgrf
7
8
9
def load_config(config_file):
10
"""Load a YAML file containing a configuration for param groups."""
11
if config_file is None:
12
- config_file = Path(pkgrf("cubids", "data/config.yml"))
+ config_file = Path(pkg_resources.files("cubids") / "data/config.yml")
13
14
with config_file.open() as f:
15
config = yaml.safe_load(f)
0 commit comments