Commit d89cc8d0 authored by Valentin Buck's avatar Valentin Buck

Fixed linux module paths

parent e8a3efff
Pipeline #8186 passed with stage
in 21 minutes and 39 seconds
...@@ -30,7 +30,7 @@ def createModifiedCallback(anobject): ...@@ -30,7 +30,7 @@ def createModifiedCallback(anobject):
extensions="asc", file_description="ESRI ASCII Raster Files") extensions="asc", file_description="ESRI ASCII Raster Files")
class PythonESRIGridReader(VTKPythonAlgorithmBase): class PythonESRIGridReader(VTKPythonAlgorithmBase):
def __init__(self): def __init__(self):
VTKPythonAlgorithmBase.__init__(self, nInputPorts=0, nOutputPorts=1, outputType='vtkUnstructuredGrid') VTKPythonAlgorithmBase.__init__(self, nInputPorts=0, nOutputPorts=1, outputType='vtkPolyData')
self._filename = None self._filename = None
self._data = None self._data = None
self._pos_lon = 10.18299 self._pos_lon = 10.18299
...@@ -128,7 +128,7 @@ class PythonESRIGridReader(VTKPythonAlgorithmBase): ...@@ -128,7 +128,7 @@ class PythonESRIGridReader(VTKPythonAlgorithmBase):
pids.InsertId(1,quads[i,2]) pids.InsertId(1,quads[i,2])
pids.InsertId(2,quads[i,1]) pids.InsertId(2,quads[i,1])
pids.InsertId(3,quads[i,0]) pids.InsertId(3,quads[i,0])
output.InsertNextCell(VTK_QUAD, pointIds) output.InsertNextCell(VTK_QUAD, pointIds)
#output.Allocate(1,1) #output.Allocate(1,1)
#output.InsertNextCell(VTK_POLY_VERTEX, pointIds) #output.InsertNextCell(VTK_POLY_VERTEX, pointIds)
......
...@@ -17,7 +17,8 @@ def process_rust(path, module): ...@@ -17,7 +17,8 @@ def process_rust(path, module):
subprocess.Popen(["ls", "target", "release"], cwd=cwd).wait() subprocess.Popen(["ls", "target", "release"], cwd=cwd).wait()
subprocess.Popen(["find", "."],cwd=cwd).wait() subprocess.Popen(["find", "."],cwd=cwd).wait()
shutil.copyfile(os.path.join(path,module,"target","release", module + ".dll"),os.path.join(path,module,"target","release", module + ".pyd")) shutil.copyfile(os.path.join(path,module,"target","release", module + ".dll"),os.path.join(path,module,"target","release", module + ".pyd"))
return [os.path.join(path,module,"target","release", module),os.path.join(path,module,"target" ,"release", module + ".pyd")] shutil.copyfile(os.path.join(path,module,"target","release", "lib" + module + ".so"),os.path.join(path,module,"target","release", module + ".so"))
return [os.path.join(path,module,"target","release", module + ".so"),os.path.join(path,module,"target" ,"release", module + ".pyd")]
def process_python(path, module): def process_python(path, module):
return [os.path.join(path,module)] return [os.path.join(path,module)]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment