/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: Szilveszter Farkas (Phanatic)
  • Date: 2007-03-15 12:43:48 UTC
  • mto: (126.1.38 bzr-gtk)
  • mto: This revision was merged to the branch mainline in revision 172.
  • Revision ID: szilveszter.farkas@gmail.com-20070315124348-0nx0zb7fv4pa8xk6
Fix the indentation error in the TortoiseBZR test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
import gettext
57
57
gettext.install('olive-gtk')
58
58
 
59
 
from olive import OliveGtk
 
59
 
 
60
# make sure we could import bzrlib
 
61
try:
 
62
    import bzrlib
 
63
except ImportError:
 
64
    # try to find bzr if it exist in $PATH
 
65
    p = os.popen('bzr version')
 
66
    s = p.read()
 
67
    r = p.close()
 
68
    if r not in (None, 0):
 
69
        print >>sys.stderr, "bzr not found"
 
70
        sys.exit(1)
 
71
    else:
 
72
        for i in s.splitlines():
 
73
            if i.startswith("Using bzrlib: "):
 
74
                path = os.path.split(i[14:])[0]
 
75
                sys.path.append(path)
 
76
                break
 
77
        else:
 
78
            print >>sys.stderr, "Can't find bzrlib location"
 
79
            sys.exit(1)
 
80
 
60
81
from bzrlib.plugin import load_plugins
61
82
load_plugins()
62
83
 
 
84
import bzrlib.ui
 
85
import bzrlib.plugins.gtk.ui as ui
 
86
bzrlib.ui.ui_factory = ui.GtkUIFactory()
 
87
 
 
88
from olive import OliveGtk
63
89
app = OliveGtk()
64
90
gtk.main()