From d4c211f04a7bce06274cc5735849f36315d0cdc6 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Wed, 20 Mar 2024 20:23:33 +0100 Subject: [PATCH] Fix cmake config path generation --- python/config/config_template.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/python/config/config_template.py b/python/config/config_template.py index 73c6df86..153336b6 100644 --- a/python/config/config_template.py +++ b/python/config/config_template.py @@ -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='')