37
37
os.execvp(python, [python] + sys.argv)
40
print >>sys.stderr, _('bzr: error: cannot find a suitable python interpreter (need %d.%d or later)') % NEED_VERS
40
print >>sys.stderr, ('bzr: error: cannot find a suitable python interpreter'
41
' (need %d.%d or later)'
52
print >>sys.stderr, _('You need to install python-glade2 and/or pygtk2 (gtk2) or set your PYTHONPATH correctly.\ntry: export PYTHONPATH=/usr/local/lib/python2.4/site-packages/')
55
print >>sys.stderr, ('You need to install python-glade2 and/or pygtk2 (gtk2)'
56
' or set your PYTHONPATH correctly.\n'
57
'try: export PYTHONPATH=/usr/local/lib/python2.4/site-packages/'
57
63
gettext.install('olive-gtk')
59
from olive.frontend.gtk import OliveGtk
66
# make sure we could import bzrlib
70
# try to find bzr if it exist in $PATH
71
p = os.popen('bzr version')
74
if r not in (None, 0):
75
print >>sys.stderr, "bzr not found"
78
for i in s.splitlines():
79
if i.startswith("Using bzrlib: "):
80
path = os.path.split(i[14:])[0]
84
print >>sys.stderr, "Can't find bzrlib location"
87
from bzrlib.plugin import load_plugins
91
import bzrlib.plugins.gtk.ui as ui
92
bzrlib.ui.ui_factory = ui.GtkUIFactory()
94
from olive import OliveGtk