Przeglądaj źródła

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

Andrej Studen 5 lat temu
rodzic
commit
bab2d2f1c3
1 zmienionych plików z 1 dodań i 1 usunięć
  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)