~ubuntu-branches/ubuntu/trusty/reinteract/trusty

« back to all changes in this revision

Viewing changes to bin/Reinteract.pyw

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2009-03-28 00:53:14 UTC
  • Revision ID: james.westby@ubuntu.com-20090328005314-ramzoo0q6r8rmwuc
Tags: upstream-0.5.0
ImportĀ upstreamĀ versionĀ 0.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
#
 
3
# Copyright 2007-2009 Owen Taylor
 
4
#
 
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.
 
8
#
 
9
########################################################################
 
10
 
 
11
import os
 
12
import sys
 
13
 
 
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')
 
21
 
 
22
sys.path[0:0] = [libdir, externaldir]
 
23
 
 
24
import reinteract
 
25
from reinteract.global_settings import global_settings
 
26
 
 
27
global_settings.dialogs_dir = builderdir
 
28
global_settings.examples_dir = examplesdir
 
29
global_settings.icon_file = icon_file
 
30
global_settings.version = "@VERSION@"
 
31
 
 
32
import reinteract.main
 
33
reinteract.main.main()