if __name__ == '__main__':
    import sys
    from osc2mqtt import main

    sys.exit(main(sys.argv[1:]) or 0)

@@ -1,8 +1,35 @@
+from osc2mqtt import main%0A%0A
 if __nam
@@ -66,39 +66,8 @@
 sys%0A
-    from osc2mqtt import main%0A%0A
     

Fix __main__.py to work as console script entry point