/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 __init__.py

  • Committer: Vincent Ladeuil
  • Date: 2009-12-03 09:34:11 UTC
  • mfrom: (670.1.2 388790-windows-setup)
  • Revision ID: v.ladeuil+lp@free.fr-20091203093411-gtl5lioi2au19al9
Hack around bzr.exe not supporting manual installations

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
visualise         Graphically visualise this branch. 
35
35
"""
36
36
 
 
37
import os
 
38
import sys
 
39
 
 
40
if getattr(sys, "frozen", None) is not None: # we run bzr.exe
 
41
 
 
42
    # FIXME: Unless a better packaging solution is found, the following
 
43
    # provides a workaround for https://bugs.launchpad.net/bzr/+bug/388790 Also
 
44
    # see https://code.edge.launchpad.net/~vila/bzr-gtk/388790-windows-setup
 
45
    # for more details about while it's needed.
 
46
 
 
47
    # NOTE: _lib must be ahead of bzrlib or sax.saxutils (in olive) fails
 
48
    here = os.path.dirname(__file__)
 
49
    sys.path.insert(0, os.path.join(here, '_lib'))
 
50
    sys.path.append(os.path.join(here, '_lib/gtk-2.0'))
 
51
 
 
52
 
37
53
import bzrlib
38
54
import bzrlib.api
39
55
from bzrlib import (
43
59
    )
44
60
from bzrlib.commands import plugin_cmds
45
61
 
46
 
import os.path
47
62
 
48
63
version_info = (0, 98, 0, 'dev', 1)
49
64