~richardjones/withgui/trunk

« back to all changes in this revision

Viewing changes to withgui/main.py

  • Committer: Richard Jones
  • Date: 2009-08-27 05:57:06 UTC
  • Revision ID: richard@l-rjones.off.ekorp.com-20090827055706-rm3nnqy4sonkot95
reorg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import sys
 
2
import withgui
 
3
 
 
4
def run():
 
5
    with withgui.Column() as gui:
 
6
        gui.resource.add(os.path.abspath(os.path.dirname(sys.argv[1])))
 
7
        exec(open(sys.argv[1]).read())
 
8
    sys.exit(gui.run())
 
9