Explorar o código

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

Andrej Studen %!s(int64=5) %!d(string=hai) anos
pai
achega
bab2d2f1c3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      labkeySlicerPythonExtension/slicerNetwork.py

+ 1 - 1
labkeySlicerPythonExtension/slicerNetwork.py

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