Changeset 32332
- Timestamp:
- Sep 6, 2011, 9:46:27 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/batch.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/batch.py
r32326 r32332 264 264 265 265 # get md5sum 266 p = Popen("md5sum " + self.outputFitsPath, shell=True, stdout=PIPE)267 p.wait()268 out = p.stdout.read()269 md5sum = out[0:out.rfind(" ")]266 #p = Popen("md5sum " + self.outputFitsPath, shell=True, stdout=PIPE) 267 #p.wait() 268 #out = p.stdout.read() 269 #md5sum = out[0:out.rfind(" ")] 270 270 271 271 # get file size 272 fileSize = os.path.getsize(self.outputFitsPath)272 #fileSize = os.path.getsize(self.outputFitsPath) 273 273 274 274 # file information … … 276 276 root.append(child) 277 277 child.attrib['name'] = self.outputFitsFile 278 child.attrib['bytes'] = str(fileSize)279 child.attrib['md5'] = md5sum278 #child.attrib['bytes'] = str(fileSize) 279 #child.attrib['md5'] = md5sum 280 280 281 281 # now create doc and write to file … … 519 519 ''' 520 520 Creates and publishes a batch 521 TODO all meth ids call below should throw exceptions on failure521 TODO all methdds call below should throw exceptions on failure 522 522 ''' 523 523 def run(self):
Note:
See TracChangeset
for help on using the changeset viewer.
