We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1e5a23 commit 241ddeaCopy full SHA for 241ddea
1 file changed
microhapulator/profile.py
@@ -12,14 +12,14 @@
12
13
14
from collections import defaultdict
15
+from importlib.resources import files
16
from io import StringIO
17
import json
18
import jsonschema
19
from microhapulator import __version__
20
from microhapulator import open as mhopen
21
from microhapulator.happer.mutate import mutate
22
from numpy.random import choice
-from pkg_resources import resource_filename
23
import pandas as pd
24
from pathlib import Path
25
import sys
@@ -32,7 +32,7 @@ class RandomMatchError(ValueError):
32
33
34
def load_schema():
35
- with mhopen(resource_filename("microhapulator", "data/profile-schema.json"), "r") as fh:
+ with mhopen(files("microhapulator") / "data/profile-schema.json", "r") as fh:
36
return json.load(fh)
37
38
0 commit comments