diff --git a/py-kivy/.gitignore b/py-kivy/.gitignore index cf4f983..bdc23d7 100644 --- a/py-kivy/.gitignore +++ b/py-kivy/.gitignore @@ -2,3 +2,4 @@ __pycache__ .hypothesis .logs/ +*pytest diff --git a/py-kivy/pos_system/pos.py b/py-kivy/pos_system/ui.py similarity index 98% rename from py-kivy/pos_system/pos.py rename to py-kivy/pos_system/ui.py index b39cbbc..ddf7ca1 100644 --- a/py-kivy/pos_system/pos.py +++ b/py-kivy/pos_system/ui.py @@ -42,5 +42,5 @@ class POSApp(App): return main_layout -if __name__ == '__main__': +def main(): POSApp().run() diff --git a/py-kivy/pyproject.toml b/py-kivy/pyproject.toml index 1c2f433..af97bfb 100644 --- a/py-kivy/pyproject.toml +++ b/py-kivy/pyproject.toml @@ -25,3 +25,7 @@ build-backend = "poetry.core.masonry.api" [tool.autopep8] indent-size = 2 + +[tool.poetry.scripts] +server = "pos_system.server:main" +ui = "pos_system.ui:main"