From d2d42c4a881110becbe7e851d9c1fe836338d392 Mon Sep 17 00:00:00 2001 From: Denis Lehmann Date: Fri, 14 Jan 2022 18:52:33 +0100 Subject: [PATCH] use main function --- bin/rzr | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/bin/rzr b/bin/rzr index bf2d71e..5800a55 100644 --- a/bin/rzr +++ b/bin/rzr @@ -15,16 +15,16 @@ import sys def print_greeter(): """Print greeter.""" greeter = """ _ _ _ - /\ \ /\ \ /\ \ - / \ \ / \ \ / \ \ - / /\ \ \ __/ /\ \ \ / /\ \ \ - / / /\ \_\/___/ /\ \ \ / / /\ \_\ - / / /_/ / /\___\/ / / / / / /_/ / / - / / /__\/ / / / / / / /__\/ / - / / /_____/ / / / _ / / /_____/ - / / /\ \ \ \ \ \__/\_\ / / /\ \ \ -/ / / \ \ \ \ \___\/ // / / \ \ \ -\/_/ \_\/ \/___/_/ \/_/ \_\/ + /\ \ /\ \ /\ \ + / \ \ / \ \ / \ \ + / /\ \ \ __/ /\ \ \ / /\ \ \ + / / /\ \_\/___/ /\ \ \ / / /\ \_\ + / / /_/ / /\___\/ / / / / / /_/ / / + / / /__\/ / / / / / / /__\/ / + / / /_____/ / / / _ / / /_____/ + / / /\ \ \ \ \ \__/\_\ / / /\ \ \ +/ / / \ \ \ \ \___\/ // / / \ \ \ +\/_/ \_\/ \/___/_/ \/_/ \_\/ """ print(greeter) @@ -213,7 +213,7 @@ def list_profiles(): print("No profiles available") -if __name__ == "__main__": +def main(): global device_manager, lightmap_directory, profile_directory @@ -295,3 +295,7 @@ if __name__ == "__main__": iterate_lights() elif args.command: apply_profile(args.command) + + +if __name__ == "__main__": + main()