Skip to content

Commit

Permalink
Add photodiag_web entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-usov committed Dec 22, 2022
1 parent 0eb65ef commit 8264dac
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ source:
build:
noarch: python
number: 0
entry_points:
- photodiag_web = photodiag_web.cli:main

requirements:
build:
Expand Down
12 changes: 12 additions & 0 deletions photodiag_web/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import os
import subprocess
import sys


def main():
app_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "app")
subprocess.run(["bokeh", "serve", app_path, *sys.argv[1:]], check=True)


if __name__ == "__main__":
main()

0 comments on commit 8264dac

Please sign in to comment.