Parcourir la source

Making sure binary files are uploaded

Andrej Studen il y a 5 ans
Parent
commit
7e0e7d3423
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      cardiacSPECT/cardiacSPECT.py

+ 1 - 1
cardiacSPECT/cardiacSPECT.py

@@ -709,7 +709,7 @@ class cardiacSPECTLogic(ScriptedLoadableModuleLogic):
       file=os.path.join(localPath,fileName)
       slicer.util.saveNode(node,file)
       print("Stored to: {}").format(file)
-      f=open(file)
+      f=open(file,'rb')
       remoteFile=labkeyPath+'/'+fileName
       self.pd.net.put(remoteFile,f.read())