diff --git a/pyproject.toml b/pyproject.toml index 37334f85..c917a985 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,6 +49,9 @@ dependencies = [ ] dynamic = ["version"] +[project.scripts] +isar-start = "isar.script:start" + [project.urls] repository = "https://github.com/equinor/isar.git" diff --git a/main.py b/src/isar/script.py similarity index 99% rename from main.py rename to src/isar/script.py index 66b67a84..a1059b91 100644 --- a/main.py +++ b/src/isar/script.py @@ -23,7 +23,8 @@ from isar.storage.uploader import Uploader from robot_interface.robot_interface import RobotInterface -if __name__ == "__main__": + +def start(): injector: Injector = get_injector() keyvault_client = injector.get(Keyvault)