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():
|
def print_greeter():
|
||||||
"""Print greeter."""
|
"""Print greeter."""
|
||||||
greeter = """ _ _ _
|
greeter = """ _ _ _
|
||||||
/\ \ /\ \ /\ \
|
/\ \ /\ \ /\ \
|
||||||
/ \ \ / \ \ / \ \
|
/ \ \ / \ \ / \ \
|
||||||
/ /\ \ \ __/ /\ \ \ / /\ \ \
|
/ /\ \ \ __/ /\ \ \ / /\ \ \
|
||||||
/ / /\ \_\/___/ /\ \ \ / / /\ \_\
|
/ / /\ \_\/___/ /\ \ \ / / /\ \_\
|
||||||
/ / /_/ / /\___\/ / / / / / /_/ / /
|
/ / /_/ / /\___\/ / / / / / /_/ / /
|
||||||
/ / /__\/ / / / / / / /__\/ /
|
/ / /__\/ / / / / / / /__\/ /
|
||||||
/ / /_____/ / / / _ / / /_____/
|
/ / /_____/ / / / _ / / /_____/
|
||||||
/ / /\ \ \ \ \ \__/\_\ / / /\ \ \
|
/ / /\ \ \ \ \ \__/\_\ / / /\ \ \
|
||||||
/ / / \ \ \ \ \___\/ // / / \ \ \
|
/ / / \ \ \ \ \___\/ // / / \ \ \
|
||||||
\/_/ \_\/ \/___/_/ \/_/ \_\/
|
\/_/ \_\/ \/___/_/ \/_/ \_\/
|
||||||
"""
|
"""
|
||||||
|
|
||||||
print(greeter)
|
print(greeter)
|
||||||
|
|
@ -213,7 +213,7 @@ def list_profiles():
|
||||||
print("No profiles available")
|
print("No profiles available")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
def main():
|
||||||
|
|
||||||
global device_manager, lightmap_directory, profile_directory
|
global device_manager, lightmap_directory, profile_directory
|
||||||
|
|
||||||
|
|
@ -295,3 +295,7 @@ if __name__ == "__main__":
|
||||||
iterate_lights()
|
iterate_lights()
|
||||||
elif args.command:
|
elif args.command:
|
||||||
apply_profile(args.command)
|
apply_profile(args.command)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue