diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-12-01 00:08:47 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-12-01 00:12:46 +0100 |
commit | 468cad66ff1f80ddaeee4123c24e4d53a032c00d (patch) | |
tree | 5d9a54916aa7d738e429a24b3a0ee10ad0850a52 /git/__init__.py | |
parent | 1053448ad885c633af9805a750d6187d19efaa6c (diff) | |
download | gitpython-468cad66ff1f80ddaeee4123c24e4d53a032c00d.tar.gz |
Fixed import of gitdb, keeping changed gitdb commit so that the submodule tests may work.
Switched gitdb submodule to new github url
Diffstat (limited to 'git/__init__.py')
-rw-r--r-- | git/__init__.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/git/__init__.py b/git/__init__.py index 483ac091..0658c330 100644 --- a/git/__init__.py +++ b/git/__init__.py @@ -14,7 +14,13 @@ __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')) + sys.path.append(os.path.join(os.path.dirname(__file__), 'ext', 'gitdb')) + + try: + import gitdb + except ImportError: + raise ImportError("'gitdb' could not be found in your PYTHONPATH") + #END verify import #} END initialization |