~richardjones/withgui/trunk

1
2
3
4
5
6
7
8
9
import sys
import withgui

def run():
    with withgui.Column() as gui:
        gui.resource.add(os.path.abspath(os.path.dirname(sys.argv[1])))
        exec(open(sys.argv[1]).read())
    sys.exit(gui.run())