Skip to content

Commit a407438

Browse files
committed
Fix PYTHONPATH
1 parent fed1749 commit a407438

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_custom_type_setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def test_py_cast_useable_on_shutdown():
5757
f"""
5858
import sys
5959
60+
sys.path.insert(0, {os.path.dirname(env.__file__)!r})
6061
sys.path.insert(0, {os.path.dirname(pybind11_tests.__file__)!r})
6162
6263
from pybind11_tests import custom_type_setup as m

tests/test_multiple_interpreters.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ def test_dependent_subinterpreters():
218218
def test():
219219
import sys
220220
221+
sys.path.insert(0, {os.path.dirname(env.__file__)!r})
221222
sys.path.insert(0, {os.path.dirname(pybind11_tests.__file__)!r})
222223
223224
import collections

0 commit comments

Comments
 (0)