use main function
This commit is contained in:
parent
dc8cfcabed
commit
d2d42c4a88
1 changed files with 15 additions and 11 deletions
26
bin/rzr
26
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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue