Fixed date.
[rox-lib.git] / AppRun
blob3a4638a751808cd92228391d8d6dd7aee68a0e0a
1 #!/usr/bin/env python
3 from sys import argv, path
4 from os.path import dirname, abspath
6 app_dir = dirname(abspath(argv[0]))
7 path.append(app_dir + '/python')
9 import rox
10 from rox import g
12 box = g.MessageDialog(None, g.MESSAGE_QUESTION, 0, g.BUTTONS_OK,
13 rox._("ROX-Lib2 contains code that is useful to newer ROX applications. \
14 You should place this directory somewhere where other programs can \
15 find it, such as ~/lib or /usr/local/lib.\n\n\
16 ROX-Lib version: %s\n\
17 PyGTK version: %s\n\
18 GTK version: %s\n\n\
19 PyGTK location:\n%s" %
20 (rox.roxlib_version, g.pygtk_version, g.gtk_version, dirname(g.__file__))))
21 box.add_button(g.STOCK_HELP, g.RESPONSE_HELP)
22 box.set_title('ROX-Lib')
23 box.set_position(g.WIN_POS_CENTER)
24 box.set_default_response(g.RESPONSE_OK)
26 if box.run() == g.RESPONSE_HELP:
27 from rox import filer
28 import os.path
29 filer.open_dir(os.path.join(app_dir, "Help"))