use main function

This commit is contained in:
Denis Lehmann 2022-01-14 18:52:33 +01:00
parent dc8cfcabed
commit d2d42c4a88

26
bin/rzr
View file

@ -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()