3
# Copyright 2007-2009 Owen Taylor
5
# This file is part of Reinteract and distributed under the terms
6
# of the BSD license. See the file COPYING in the Reinteract
7
# distribution for full details.
9
########################################################################
14
script_path = os.path.realpath(os.path.abspath(sys.argv[0]))
15
topdir = os.path.dirname(os.path.dirname(script_path))
16
libdir = os.path.join(topdir, 'python')
17
externaldir = os.path.join(topdir, 'external')
18
builderdir = os.path.join(topdir, 'dialogs')
19
examplesdir = os.path.join(topdir, 'examples')
20
icon_file = os.path.join(topdir, 'Reinteract.ico')
22
sys.path[0:0] = [libdir, externaldir]
25
from reinteract.global_settings import global_settings
27
global_settings.dialogs_dir = builderdir
28
global_settings.examples_dir = examplesdir
29
global_settings.icon_file = icon_file
30
global_settings.version = "@VERSION@"
32
import reinteract.main
33
reinteract.main.main()