5 DIR = os.path.abspath(os.path.dirname(__file__))
9 installed_path = os.path.join(DIR,
"include")
10 source_path = os.path.join(os.path.dirname(DIR),
"include")
11 return installed_path
if os.path.exists(installed_path)
else source_path
15 cmake_installed_path = os.path.join(DIR,
"share",
"cmake",
"pybind11")
16 if os.path.exists(cmake_installed_path):
17 return cmake_installed_path
19 msg =
"pybind11 not installed, installation required to access the CMake files" 20 raise ImportError(msg)
def get_include(user=False)