Skip to content

Commit

Permalink
Fix bioimageio apps
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed May 6, 2024
1 parent 2bcb2eb commit 8728d46
Show file tree
Hide file tree
Showing 19 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
include environments/*
recursive-include apps
recursive-include bioimageio/apps
global-exclude *.pyc
global-exclude *__pycache__*
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions bioimageio/engine/app_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async def run(self, server):
if self.runtime == AppRuntime.python:
assert self.entrypoint

file_path = Path(__file__).parent.parent.parent / "apps" / self.id / self.entrypoint
file_path = Path(__file__).parent.parent.parent / "bioimageio/apps" / self.id / self.entrypoint
module_name = 'bioimageio.engine.apps.' + self.id.replace('-', '_')
spec = importlib.util.spec_from_file_location(module_name, file_path)
module = importlib.util.module_from_spec(spec)
Expand All @@ -37,7 +37,7 @@ async def run(self, server):

def load_apps():
current_dir = Path(__file__).parent
apps_dir = current_dir.parent.parent / "apps"
apps_dir = current_dir.parent.parent / "bioimageio/apps"
# list folders under apps_dir
apps = {}
for app_dir in apps_dir.iterdir():
Expand Down

0 comments on commit 8728d46

Please sign in to comment.