diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-12 17:20:43 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-12 17:20:43 +0200 |
commit | 6c1faef799095f3990e9970bc2cb10aa0221cf9c (patch) | |
tree | a79a69fa46df39eb794875f374b74110dfe091e1 /lib/git/__init__.py | |
parent | 86ea63504f3e8a74cfb1d533be9d9602d2d17e27 (diff) | |
download | gitpython-6c1faef799095f3990e9970bc2cb10aa0221cf9c.tar.gz |
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
Diffstat (limited to 'lib/git/__init__.py')
-rw-r--r-- | lib/git/__init__.py | 21 |
1 files changed, 18 insertions, 3 deletions
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)) ] + |