[Python] gmsh.initialize() fails
Hello,
I have a problem with gmsh initialization. In my case, the so lib is located in .local/lib/python3.10/site-packages/gmsh-4.11.0-py3.10-linux-x86_64.egg/lib and I figured out that the gmsh.py file was not searching for this case. I solved the problem by adding 2 lines so the code looks like:
if not os.path.exists(libpath):
libpath = os.path.join(libdir, "Lib", libname)
if not os.path.exists(libpath):
libpath = os.path.join(moduledir, libname)
# Added this
if not os.path.exists(libpath):
libpath = os.path.join(libpath, 'lib')
# End of add
if not os.path.exists(libpath):
if platform.system() == "Windows":
libpath = find_library("gmsh-4.11")
if not libpath:
libpath = find_library("gmsh")
else:
libpath = find_library("gmsh")
How can I contribute to push the fix? I cannot fork nor push directly to a new branch to create a merge request.