magick.py: make executable and call main() only if __name__ is __main__
This commit is contained in:
parent
fb2916e6b2
commit
f0e4c6188e
1 changed files with 2 additions and 1 deletions
1
magick.py
Normal file → Executable file
1
magick.py
Normal file → Executable file
|
@ -303,4 +303,5 @@ def main():
|
|||
)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Loading…
Reference in a new issue