X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa876ca9ec87e90605808bfcab4d4226965dbad..05e00ac5ef410707da86d98786cbb268100a7337:/wxPython/demo/encode_bitmaps.py?ds=sidebyside diff --git a/wxPython/demo/encode_bitmaps.py b/wxPython/demo/encode_bitmaps.py index c3864545fa..37db1b1b85 100644 --- a/wxPython/demo/encode_bitmaps.py +++ b/wxPython/demo/encode_bitmaps.py @@ -1,9 +1,3 @@ -#!/usr/bin/env python -#---------------------------------------------------------------------- -# 11/5/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Modified for wx namespace -# """ This is a way to save the startup time when running img2py on lots of @@ -123,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)