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 0c3f79a commit b526630Copy full SHA for b526630
src/sunbeamlib/__init__.py
@@ -42,6 +42,17 @@ def get_docker_str(repo: str, user: str = "sunbeamlabs") -> str:
42
return f"docker://{user}/{repo}:{docker_tag}"
43
44
45
+def get_ext_path(ext_name: str) -> Path:
46
+ try:
47
+ ext_path = Path(os.environ["SUNBEAM_DIR"]) / "extensions" / ext_name
48
+ except KeyError:
49
+ raise ValueError("SUNBEAM_DIR not set in environment.")
50
+
51
+ if ext_path.exists():
52
+ return ext_path
53
+ raise ValueError(f"Extension {ext_name} not found in {os.environ['SUNBEAM_DIR']}.")
54
55
56
def load_sample_list(
57
samplelist_fp: Path, paired_end: bool = True
58
) -> Dict[str, Dict[str, str]]:
0 commit comments