diff options
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 |