MCPcopy Create free account
hub / github.com/pybind/pybind11 / get_include

Function get_include

pybind11/commands.py:8–15  ·  view source on GitHub ↗

Return the path to the pybind11 include directory. The historical "user" argument is unused, and may be removed.

(user: bool = False)

Source from the content-addressed store, hash-verified

6
7
8def get_include(user: bool = False) -> str: # noqa: ARG001
9 """
10 Return the path to the pybind11 include directory. The historical "user"
11 argument is unused, and may be removed.
12 """
13 installed_path = os.path.join(DIR, "include")
14 source_path = os.path.join(os.path.dirname(DIR), "include")
15 return installed_path if os.path.exists(installed_path) else source_path
16
17
18def get_cmake_dir() -> str:

Callers 1

print_includesFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected