X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/95bfd958bda8955ac81277c78e5627c926154f39..02161c7c81e12685d04a1f73e714ca52ad858f6c:/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)