def main(argv=None): if argv is None: argv = sys.argv # end if argc = len(argv) if argc < 2: show_usage() sys.exit(-1) # end if filename = argv[1] print "cooooooooool ", filename fileshow = convert.onePNG(filename, 1) # launch eye of gnome os.system("eog " + fileshow)
def viewraw(filename): print "cooooooooool ", filename fileshow = convert.onePNG(filename, 1) # launch eye of gnome os.system("eog " + fileshow)