diff options
| author | Sebastian Thiel <byronimo@gmail.com> | 2011-06-10 14:26:46 +0200 |
|---|---|---|
| committer | Sebastian Thiel <byronimo@gmail.com> | 2011-06-10 14:26:46 +0200 |
| commit | d7b486df99139ff867db01f6427408a12ff213b3 (patch) | |
| tree | 16197d630fdc3d7a593ddc47ca788764c9693ee1 | |
| parent | 17d9d1395fb6d18d553e085150138463b5827a2f (diff) | |
| download | gitdb-d7b486df99139ff867db01f6427408a12ff213b3.tar.gz | |
Added smmap as submodule, assured the sys path makes it available
| -rw-r--r-- | .gitmodules | 4 | ||||
| -rw-r--r-- | gitdb/__init__.py | 16 | ||||
| m--------- | gitdb/ext/smmap | 0 |
3 files changed, 13 insertions, 7 deletions
diff --git a/.gitmodules b/.gitmodules index 3db4c67..1be8cca 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,3 +2,7 @@ path = gitdb/ext/async url = git://github.com/gitpython-developers/async.git branch = master +[submodule "smmap"] + path = gitdb/ext/smmap + url = git://github.com/Byron/smmap.git + branch = master diff --git a/gitdb/__init__.py b/gitdb/__init__.py index a551f37..775c969 100644 --- a/gitdb/__init__.py +++ b/gitdb/__init__.py @@ -10,13 +10,15 @@ import os #{ Initialization def _init_externals(): """Initialize external projects by putting them into the path""" - sys.path.append(os.path.join(os.path.dirname(__file__), 'ext', 'async')) - - try: - import async - except ImportError: - raise ImportError("'async' could not be imported, assure it is located in your PYTHONPATH") - #END verify import + for module in ('async', 'smmap'): + sys.path.append(os.path.join(os.path.dirname(__file__), 'ext', module)) + + try: + __import__(module) + except ImportError: + raise ImportError("'%s' could not be imported, assure it is located in your PYTHONPATH" % module) + #END verify import + #END handel imports #} END initialization diff --git a/gitdb/ext/smmap b/gitdb/ext/smmap new file mode 160000 +Subproject 4466476cf576cf5936a11524e67345a80e2ec5a |
