Allow program to be run as a script
This commit is contained in:
parent
3bf1966bfd
commit
b6948aded2
|
@ -1,11 +1,11 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "set-detect-notify"
|
name = "set_detect_notify"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Detect all the things"
|
description = "Detect all the things"
|
||||||
authors = ["slashtechno <77907286+slashtechno@users.noreply.github.com>"]
|
authors = ["slashtechno <77907286+slashtechno@users.noreply.github.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
packages = [{include = "set-detect-notify"}]
|
packages = [{include = "set_detect_notify"}]
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
# python = "^3.10"
|
# python = "^3.10"
|
||||||
|
@ -41,3 +41,6 @@ build-backend = "poetry.core.masonry.api"
|
||||||
# Where possible, `black` will attempt to format to 88 characters
|
# Where possible, `black` will attempt to format to 88 characters
|
||||||
# However, setting ruff to 135 will allow for longer lines that can't be auto-formatted
|
# However, setting ruff to 135 will allow for longer lines that can't be auto-formatted
|
||||||
line-length = 135
|
line-length = 135
|
||||||
|
|
||||||
|
[tool.poetry.scripts]
|
||||||
|
set-detect-notify = "set_detect_notify.__main__:main"
|
|
@ -275,5 +275,5 @@ def main():
|
||||||
video_capture.release()
|
video_capture.release()
|
||||||
cv2.destroyAllWindows()
|
cv2.destroyAllWindows()
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
Loading…
Reference in New Issue