Fix cmake config path generation

This commit is contained in:
Matthias Hochsteger 2024-03-20 20:23:33 +01:00
parent 5e54efb57b
commit d4c211f04a

View File

@ -60,12 +60,9 @@ version = NETGEN_VERSION_GIT
def get_cmake_dir():
import os.path as p
d_python = p.dirname(p.dirname(__file__))
d_python = p.dirname(p.dirname(p.dirname(__file__)))
py_to_cmake = p.relpath(
NG_INSTALL_DIR_CMAKE,
NG_INSTALL_DIR_PYTHON
)
return p.normpath(p.join(d_python,py_to_cmake))
if __name__ == '__main__':
print(get_cmake_dir(), end='')