Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd37ef77

Browse files
committed
Added smmap as submodule, package initialization adjusted to assure it is available
1 parentda12df9 commitd37ef77

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

‎.gitmodules

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
[submodule "git/ext/async"]
1+
[submodule "async"]
22
path=git/ext/async
33
url=git://github.com/gitpython-developers/async.git
4+
[submodule "smmap"]
5+
path=git/ext/smmap
6+
url=git://github.com/Byron/smmap.git

‎git/__init__.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@
1414
#{ Initialization
1515
def_init_externals():
1616
"""Initialize external projects by putting them into the path"""
17-
sys.path.append(os.path.join(os.path.dirname(__file__),'ext','async'))
18-
19-
try:
20-
importasync
21-
exceptImportError:
22-
raiseImportError("'async' could not be found in your PYTHONPATH")
23-
#END verify import
17+
ext_base=os.path.join(os.path.dirname(__file__),'ext')
18+
forpackagein ('async','smmap'):
19+
sys.path.append(os.path.join(ext_base,package))
20+
try:
21+
__import__(package)
22+
exceptImportError:
23+
raiseImportError("%r could not be found in your PYTHONPATH"%package)
24+
#END verify import
25+
#END handle external import
2426

2527
#} END initialization
2628

‎git/ext/smmap

Submodule smmap added atcf297b7

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp