Skip to content

Commit

Permalink
Include package data
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Dec 7, 2023
1 parent f60314f commit c8a5908
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 4 additions & 2 deletions jbrowse_jupyter/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ def get_default(name, view_type="LGV"):
"""Returns the configuration object given a genome name."""
if view_type == "CGV":
with importlib.resources.open_text(
"jbrowse_jupyter", f"{name}_cgv.json"
"jbrowse_jupyter.data", f"{name}_cgv.json"
) as file:
return json.load(file)
else:
with importlib.resources.open_text("jbrowse_jupyter", f"{name}.json") as file:
with importlib.resources.open_text(
"jbrowse_jupyter.data", f"{name}.json"
) as file:
return json.load(file)


Expand Down

0 comments on commit c8a5908

Please sign in to comment.