import sys, os, glob, getopt, string
from wxPython.wx import *
+if wxPlatform == "__WXGTK__":
+ # some bitmap related things need to have a wxApp initialized...
+ app = wxPySimpleApp()
+
wxInitAllImageHandlers()
def convert(file, maskClr, outputDir, outputName, outType, outExt):