/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-08-05 01:03:35 UTC
  • mto: This revision was merged to the branch mainline in revision 256.
  • Revision ID: jelmer@samba.org-20070805010335-1js1cwqxtcvbljw1
Add Merge Directive option to revision menu.

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
76
75
        print >>sys.stderr, "bzr not found"
77
76
        sys.exit(1)
78
77
    else:
79
 
        bzrlib_match = re.compile(r"bzrlib: (.*)[/\\]bzrlib").search(s)
80
 
        if bzrlib_match:
81
 
            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
82
83
        else:
83
84
            print >>sys.stderr, "Can't find bzrlib location"
84
85
            sys.exit(1)
90
91
import bzrlib.plugins.gtk.ui as ui
91
92
bzrlib.ui.ui_factory = ui.GtkUIFactory()
92
93
 
93
 
from bzrlib.plugins.gtk.olive import OliveGtk
 
94
from olive import OliveGtk
94
95
app = OliveGtk()
95
96
gtk.main()