use main function
This commit is contained in:
parent
dc8cfcabed
commit
d2d42c4a88
1 changed files with 15 additions and 11 deletions
6
bin/rzr
6
bin/rzr
|
|
@ -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