/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive-gtk

  • Committer: Jelmer Vernooij
  • Date: 2007-07-15 18:12:57 UTC
  • Revision ID: jelmer@samba.org-20070715181257-g264qus2zyi3v39z
Add RevisionSelectionBox widget, use in TagDialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
import os
20
20
import sys
21
 
import re
22
21
 
23
22
try:
24
23
    version_info = sys.version_info
51
50
 
52
51
try:
53
52
    import gtk
 
53
    import gtk.glade
54
54
except:
55
 
    print >>sys.stderr, ('You need to install pygtk2 (gtk2)'
 
55
    print >>sys.stderr, ('You need to install python-glade2 and/or pygtk2 (gtk2)'
56
56
                         ' or set your PYTHONPATH correctly.\n'
57
57
                         'try: export PYTHONPATH=/usr/local/lib/python2.4/site-packages/'
58
58
                        )
75
75
        print >>sys.stderr, "bzr not found"
76
76
        sys.exit(1)
77
77
    else:
78
 
        bzrlib_match = re.compile(r"bzrlib: (.*)[/\\]bzrlib").search(s)
79
 
        if bzrlib_match:
80
 
            sys.path.append(bzrlib_match.group(1))
 
78
        for i in s.splitlines():
 
79
            if i.startswith("Using bzrlib: "):
 
80
                path = os.path.split(i[14:])[0]
 
81
                sys.path.append(path)
 
82
                break
81
83
        else:
82
84
            print >>sys.stderr, "Can't find bzrlib location"
83
85
            sys.exit(1)
89
91
import bzrlib.plugins.gtk.ui as ui
90
92
bzrlib.ui.ui_factory = ui.GtkUIFactory()
91
93
 
92
 
from bzrlib.plugins.gtk.olive import OliveGtk
 
94
from olive import OliveGtk
93
95
app = OliveGtk()
94
96
gtk.main()