Skip to content

Commit e6cc702

Browse files
committedApr 11, 2020
don't try to use __file__ when using pyoxidizer
1 parent cc21afa commit e6cc702

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎gitdb/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
def _init_externals():
1414
"""Initialize external projects by putting them into the path"""
1515
for module in ('smmap',):
16-
sys.path.append(os.path.join(os.path.dirname(__file__), 'ext', module))
16+
if 'PYOXIDIZER' not in os.environ:
17+
sys.path.append(os.path.join(os.path.dirname(__file__), 'ext', module))
1718

1819
try:
1920
__import__(module)

0 commit comments

Comments
 (0)
Please sign in to comment.