Skip to content

Commit 466ed9c

Browse files
committed
Test for PyOxidizer and avoid trying to use __file__ if present
Fixes #1002
1 parent bdd4368 commit 466ed9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎git/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#{ Initialization
1919
def _init_externals():
2020
"""Initialize external projects by putting them into the path"""
21-
if __version__ == 'git':
21+
if __version__ == 'git' and 'PYOXIDIZER' not in os.environ:
2222
sys.path.insert(0, osp.join(osp.dirname(__file__), 'ext', 'gitdb'))
2323

2424
try:

0 commit comments

Comments
 (0)