mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-03 16:50:34 +05:00
Fix cmake config path generation
This commit is contained in:
parent
5e54efb57b
commit
d4c211f04a
@ -60,12 +60,9 @@ version = NETGEN_VERSION_GIT
|
|||||||
|
|
||||||
def get_cmake_dir():
|
def get_cmake_dir():
|
||||||
import os.path as p
|
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(
|
py_to_cmake = p.relpath(
|
||||||
NG_INSTALL_DIR_CMAKE,
|
NG_INSTALL_DIR_CMAKE,
|
||||||
NG_INSTALL_DIR_PYTHON
|
NG_INSTALL_DIR_PYTHON
|
||||||
)
|
)
|
||||||
return p.normpath(p.join(d_python,py_to_cmake))
|
return p.normpath(p.join(d_python,py_to_cmake))
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
print(get_cmake_dir(), end='')
|
|
||||||
|
Loading…
Reference in New Issue
Block a user