From 6c1faef799095f3990e9970bc2cb10aa0221cf9c Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sat, 12 Jun 2010 17:20:43 +0200 Subject: Removed odb from project, it is now used as a submodule named gitdb, which was added instead Adjusted all imports to deal with the changed package names --- lib/git/__init__.py | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'lib/git/__init__.py') diff --git a/lib/git/__init__.py b/lib/git/__init__.py index 2f17c55b..6728ba82 100644 --- a/lib/git/__init__.py +++ b/lib/git/__init__.py @@ -5,10 +5,25 @@ # the BSD License: http://www.opensource.org/licenses/bsd-license.php import os +import sys import inspect __version__ = 'git' + +#{ Initialization +def _init_externals(): + """Initialize external projects by putting them into the path""" + sys.path.append(os.path.join(os.path.dirname(__file__), 'ext')) + +#} END initialization + +################# +_init_externals() +################# + +#{ Imports + from git.config import GitConfigParser from git.objects import * from git.refs import * @@ -22,8 +37,8 @@ from git.remote import * from git.index import * from git.utils import LockFile, BlockingLockFile -# odb is NOT imported intentionally - if you really want it, you should get it -# yourself as its part of the core +#} END imports __all__ = [ name for name, obj in locals().items() - if not (name.startswith('_') or inspect.ismodule(obj)) ] + if not (name.startswith('_') or inspect.ismodule(obj)) ] + -- cgit v1.2.1