Skip to content

Commit 70a8078

Browse files
authored
Merge pull request #18 from code-yeongyu/feature/make-aishell-executable-alone
Make executable alone by specifying entrypoint
2 parents 2c2614d + e09651c commit 70a8078

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

aishell/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import aishell
22

3-
if __name__ == '__main__':
3+
if __name__ == '__main__': # to make the project executable by `python3 -m aishell <query>`
44
aishell.main()

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ openai = "^0.26.5"
4545
pydantic = "^1.10.4"
4646
pyright = "^1.1.294"
4747

48+
[tool.poetry.scripts]
49+
aishell = "aishell:main"
50+
4851
[tool.ruff.flake8-quotes]
4952
inline-quotes = "single"
5053
docstring-quotes = "single"

0 commit comments

Comments
 (0)