We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2daeb2 commit 40b4b50Copy full SHA for 40b4b50
pybind11/__init__.py
@@ -4,4 +4,9 @@
4
def get_include(user=False):
5
import os
6
d = os.path.dirname(__file__)
7
- return os.path.join(os.path.dirname(d), "include")
+ if os.path.exists(os.path.join(d, "include")):
8
+ # Package is installed
9
+ return os.path.join(d, "include")
10
+ else:
11
+ # Package is from a source directory
12
+ return os.path.join(os.path.dirname(d), "include")
0 commit comments