Skip to content

Commit 1b64e5a

Browse files
committed
Fixed script
1 parent 38c1a6d commit 1b64e5a

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ app = [
6161
]
6262

6363
[project.scripts]
64-
tda-mapper-app = "tdamapper._app:main"
64+
tda-mapper-app = "tdamapper._run_app:run"
6565

6666
[project.urls]
6767
Homepage = "https://github.com/lucasimi/tda-mapper-python"

src/tdamapper/_app.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,3 @@ def main():
738738
favicon=ICON_URL,
739739
port=int(port),
740740
)
741-
742-
743-
if __name__ in {"__main__", "__mp_main__", "tdamapper._app"}:
744-
main()

src/tdamapper/_run_app.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from tdamapper._app import main
2+
3+
4+
def run():
5+
main()
6+
7+
8+
if __name__ in {"__main__", "__mp_main__", "tdamapper._run_app"}:
9+
run()

0 commit comments

Comments
 (0)