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

Commit965d2d3

Browse files
committed
Never add a vendored smmap directory to sys.path
This removes the logic that appended the git submodule directoryfor smmap to sys.path under most circumstances when the versionof gitdb was not from PyPI. Now gitdb does not modify sys.path.Seegitpython-developers/GitPython#1717andgitpython-developers/GitPython#1720 forcontext. This change is roughly equivalent to the change toGitPython, though as noted the behavior being eliminated is subtlydifferent here and there.
1 parent3d3e957 commit965d2d3

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

‎gitdb/__init__.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,12 @@
44
# the New BSD License: https://opensource.org/license/bsd-3-clause/
55
"""Initialize the object database module"""
66

7-
importsys
8-
importos
9-
10-
#{ Initialization
11-
12-
13-
def_init_externals():
14-
"""Initialize external projects by putting them into the path"""
15-
if'PYOXIDIZER'notinos.environ:
16-
where=os.path.join(os.path.dirname(__file__),'ext','smmap')
17-
ifos.path.exists(where):
18-
sys.path.append(where)
19-
20-
importsmmap
21-
delsmmap
22-
# END handle imports
23-
24-
#} END initialization
25-
26-
_init_externals()
27-
287
__author__="Sebastian Thiel"
298
__contact__="byronimo@gmail.com"
309
__homepage__="https://github.com/gitpython-developers/gitdb"
3110
version_info= (4,0,11)
3211
__version__='.'.join(str(i)foriinversion_info)
3312

34-
3513
# default imports
3614
fromgitdb.baseimport*
3715
fromgitdb.dbimport*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp