File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 2
2
path = gitdb/ext/async
3
3
url = git://github.com/gitpython-developers/async.git
4
4
branch = master
5
+ [submodule "smmap "]
6
+ path = gitdb/ext/smmap
7
+ url = git://github.com/Byron/smmap.git
8
+ branch = master
Original file line number Diff line number Diff line change 10
10
#{ Initialization
11
11
def _init_externals ():
12
12
"""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
20
22
21
23
#} END initialization
22
24
You can’t perform that action at this time.
0 commit comments