Explorar el Código

Merge branch 'master' of wiscigt.powertheword.com:andrej.studen/labkeySlicerPythonAPI

Andrej Studen hace 5 años
padre
commit
bab2d2f1c3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      labkeySlicerPythonExtension/slicerNetwork.py

+ 1 - 1
labkeySlicerPythonExtension/slicerNetwork.py

@@ -462,7 +462,7 @@ class labkeyURIHandler(slicer.vtkURIHandler):
                 return False
                 return False
 
 
         #make an URL request
         #make an URL request
-        with open(localPath, 'r') as f:
+        with open(localPath, 'rb') as f:
             data=f.read()
             data=f.read()
         remotePath=self.GetLabkeyPathFromRelativePath(relativePath)
         remotePath=self.GetLabkeyPathFromRelativePath(relativePath)
         self.put(remotePath,data)
         self.put(remotePath,data)