comparison cmd2.py @ 70:48b0bf2e3d2e

fixed run from paste buffer
author catherine@Elli.myhome.westell.com
date Mon, 23 Jun 2008 22:17:28 -0400
parents 824651b4d1b1
children ea1697be3d00
comparison
equal deleted inserted replaced
69:824651b4d1b1 70:48b0bf2e3d2e
264 if inputFrom: 264 if inputFrom:
265 statement, source = inputFrom[0], inputFrom[-1] 265 statement, source = inputFrom[0], inputFrom[-1]
266 if source: 266 if source:
267 statement = '%s %s' % (statement, self.fileimport(statement=statement, source=source)) 267 statement = '%s %s' % (statement, self.fileimport(statement=statement, source=source))
268 else: 268 else:
269 statement = getPasteBuffer() 269 statement = '%s %s' % (statement, getPasteBuffer())
270 270
271 pipeTo = self.pipe_destination_finder(statement) 271 pipeTo = self.pipe_destination_finder(statement)
272 if pipeTo: 272 if pipeTo:
273 statement, pipeTo = pipeTo[0], pipeTo[-1] 273 statement, pipeTo = pipeTo[0], pipeTo[-1]
274 statekeeper = Statekeeper(self, ('stdout',)) 274 statekeeper = Statekeeper(self, ('stdout',))