X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..28eab81fdc83fdc69da113f13d6d5e65c8ad1ba2:/wxPython/demo/encode_bitmaps.py diff --git a/wxPython/demo/encode_bitmaps.py b/wxPython/demo/encode_bitmaps.py index 4d4945b54f..37db1b1b85 100644 --- a/wxPython/demo/encode_bitmaps.py +++ b/wxPython/demo/encode_bitmaps.py @@ -117,7 +117,8 @@ command_lines = [ ] -for line in command_lines: - args = line.split() - img2py.main(args) +if __name__ == "__main__": + for line in command_lines: + args = line.split() + img2py.main(args)