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

Appearance settings

Commit 9302789

Browse filesBrowse files
authored
Merge pull request #102 from EliahKagan/nopathmod
Never add a vendored smmap directory to sys.path
2 parents 3d3e957 + 965d2d3 commit 9302789
Copy full SHA for 9302789

File tree

Expand file treeCollapse file tree

1 file changed

+0
-22
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-22
lines changed

‎gitdb/__init__.py

Copy file name to clipboardExpand all lines: gitdb/__init__.py
-22Lines 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-
import sys
8-
import os
9-
10-
#{ Initialization
11-
12-
13-
def _init_externals():
14-
"""Initialize external projects by putting them into the path"""
15-
if 'PYOXIDIZER' not in os.environ:
16-
where = os.path.join(os.path.dirname(__file__), 'ext', 'smmap')
17-
if os.path.exists(where):
18-
sys.path.append(where)
19-
20-
import smmap
21-
del smmap
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) for i in version_info)
3312

34-
3513
# default imports
3614
from gitdb.base import *
3715
from gitdb.db import *

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.