From f0e4c6188e18c11af96cb6fb579e457d48710d7b Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Thu, 23 Apr 2020 06:57:10 +0200 Subject: [PATCH] magick.py: make executable and call main() only if __name__ is __main__ --- magick.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 magick.py diff --git a/magick.py b/magick.py old mode 100644 new mode 100755 index b3dcc18..8299cf1 --- a/magick.py +++ b/magick.py @@ -303,4 +303,5 @@ def main(): ) -main() +if __name__ == "__main__": + main()