#!/usr/bin/env python import string from wxPython.tools import img2py commands=[ '-i -n Cancel cancel.png', '-a -n Directory gnome-fs-directory.png', '-a -n OkBmp ok.png', '-a -n mp3 mp3.png', '-a -n ogg ogg.png', '-a -n settings settings.png', '-a -n CD cd.png', '-a -n Rename item_rename.png', '-a -n Play play.png', '-a -n AboutPic about-image.png', '-a -n Refresh refresh.png', '-a -i -n Icon icon.png', ] filename='../mBoxModules/images.py' for cmd in commands: parts=string.split(cmd) parts.append(filename) print parts img2py.main(parts)