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

Commitab7c322

Browse files
committed
fix(externals): init external in dev mode only
Previously it would always adjust your system path, which is badbehaviour.
1 parent1fd07a0 commitab7c322

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎git/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
#{ Initialization
1616
def_init_externals():
1717
"""Initialize external projects by putting them into the path"""
18-
sys.path.append(os.path.join(os.path.dirname(__file__),'ext','gitdb'))
18+
if__version__=='git':
19+
sys.path.insert(0,os.path.join(os.path.dirname(__file__),'ext','gitdb'))
1920

2021
try:
2122
importgitdb

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp