From 468cad66ff1f80ddaeee4123c24e4d53a032c00d Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 1 Dec 2010 00:08:47 +0100 Subject: Fixed import of gitdb, keeping changed gitdb commit so that the submodule tests may work. Switched gitdb submodule to new github url --- git/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'git/__init__.py') 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 -- cgit v1.2.1