/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Alexander Belchenko
  • Date: 2009-01-30 14:58:20 UTC
  • mto: (0.200.215 dulwich)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: bialix@ukr.net-20090130145820-gnmbyvgw1ngw39zv
bzr.exe support: allow import of dulwich from _lib subdirectory

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
"""A GIT branch and repository format implementation for bzr."""
23
23
 
 
24
import os
 
25
import sys
 
26
 
24
27
import bzrlib
25
28
import bzrlib.api
26
29
from bzrlib import bzrdir, errors as bzr_errors
34
37
MINIMUM_DULWICH_VERSION = (0, 1, 0)
35
38
COMPATIBLE_BZR_VERSIONS = [(1, 11, 0), (1, 12, 0)]
36
39
 
 
40
if getattr(sys, "frozen", None):
 
41
    # allow import additional libs from ./_lib for bzr.exe only
 
42
    sys.path.append(os.path.normpath(os.path.join(os.path.dirname(__file__), '_lib')))
 
43
 
37
44
_versions_checked = False
38
45
def lazy_check_versions():
39
46
    global _versions_checked
223
230
        from dulwich.server import TCPGitServer
224
231
        from bzrlib.plugins.git.server import BzrBackend
225
232
        from bzrlib.trace import warning
226
 
        import os
227
233
 
228
234
        warning("server support in bzr-git is experimental.")
229
235