comparison en/examples/run-example @ 773:3b640272a966

Progres on resolve
author Bryan O'Sullivan <bos@serpentine.com>
date Sun, 12 Apr 2009 00:05:30 -0700
parents c82ff69f0935
children 019040fbf5f5
comparison
equal deleted inserted replaced
772:dbe5f4bb6507 773:3b640272a966
315 ofp.close() 315 ofp.close()
316 err |= self.rename_output(ofp_basename, ignore) 316 err |= self.rename_output(ofp_basename, ignore)
317 if out: 317 if out:
318 ofp_basename = '%s.%s' % (self.name, out) 318 ofp_basename = '%s.%s' % (self.name, out)
319 norm = os.path.normpath(ofp_basename) 319 norm = os.path.normpath(ofp_basename)
320 norm = norm.replace(os.sep, '-')
320 example.entities[ 321 example.entities[
321 '<!ENTITY interaction.%s ' 322 '<!ENTITY interaction.%s '
322 'SYSTEM "results/%s.lxo">' 323 'SYSTEM "results/%s.lxo">'
323 % (norm, norm)] = 1 324 % (norm, norm)] = 1
324 read_hint = ofp_basename + ' ' 325 read_hint = ofp_basename + ' '
343 xml_escape(hunk.rstrip('\n')))) 344 xml_escape(hunk.rstrip('\n'))))
344 if nl: hunk += '\n' 345 if nl: hunk += '\n'
345 ofp.write(hunk) 346 ofp.write(hunk)
346 # then its output 347 # then its output
347 ofp.write(xml_escape(output)) 348 ofp.write(xml_escape(output))
348 ps = newps 349 ps = newps
349 self.status('\n') 350 self.status('\n')
350 except: 351 except:
351 print >> sys.stderr, '(killed)' 352 print >> sys.stderr, '(killed)'
352 os.kill(self.pid, signal.SIGKILL) 353 os.kill(self.pid, signal.SIGKILL)
353 pid, rc = os.wait() 354 pid, rc = os.wait()