Skip to content

Commit d7b486d

Browse files
committed
Added smmap as submodule, assured the sys path makes it available
1 parent 17d9d13 commit d7b486d

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
path = gitdb/ext/async
33
url = git://github.com/gitpython-developers/async.git
44
branch = master
5+
[submodule "smmap"]
6+
path = gitdb/ext/smmap
7+
url = git://github.com/Byron/smmap.git
8+
branch = master

gitdb/__init__.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@
1010
#{ Initialization
1111
def _init_externals():
1212
"""Initialize external projects by putting them into the path"""
13-
sys.path.append(os.path.join(os.path.dirname(__file__), 'ext', 'async'))
14-
15-
try:
16-
import async
17-
except ImportError:
18-
raise ImportError("'async' could not be imported, assure it is located in your PYTHONPATH")
19-
#END verify import
13+
for module in ('async', 'smmap'):
14+
sys.path.append(os.path.join(os.path.dirname(__file__), 'ext', module))
15+
16+
try:
17+
__import__(module)
18+
except ImportError:
19+
raise ImportError("'%s' could not be imported, assure it is located in your PYTHONPATH" % module)
20+
#END verify import
21+
#END handel imports
2022

2123
#} END initialization
2224

gitdb/ext/smmap

Submodule smmap added at 4466476

0 commit comments

Comments
 (0)