Skip to content

Commit

Permalink
Run as cli script command with 'isar'
Browse files Browse the repository at this point in the history
  • Loading branch information
tsundvoll committed Jun 5, 2024
1 parent ff0a52b commit 7ba7a7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ dependencies = [
]
dynamic = ["version"]

[project.scripts]
isar-start = "isar.script:start"

[project.urls]
repository = "https://github.com/equinor/isar.git"

Expand Down
3 changes: 2 additions & 1 deletion main.py → src/isar/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7ba7a7f

Please sign in to comment.