Implement entrypoint run function

Because otheriwse we run into

AttributeError: module 'wyoming_satellite.__main__' has no attribute 'run'
This commit is contained in:
Martin Weinelt
2023-12-27 18:08:17 +01:00
committed by Martin Weinelt
parent 2595e603e8
commit 6a1b51e2b4
+5 -1
View File
@@ -439,8 +439,12 @@ def _split(command: Optional[str]) -> Optional[List[str]]:
# -----------------------------------------------------------------------------
if __name__ == "__main__":
def run():
try:
asyncio.run(main())
except KeyboardInterrupt:
pass
if __name__ == "__main__":
run()