Changeset 2701
- Timestamp:
- Apr 11, 2006, 5:10:28 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/util.py
r2679 r2701 486 486 return utilities.polygon.populate_polygon(*args, **kwargs) 487 487 488 ''' 489 this simply catches the screen output and files it to a file 490 ''' 491 from os import sep 492 493 class Screen_Catcher: 494 495 def __init__(self, filename): 496 self.data = '' 497 self.filename = filename 498 499 def write(self, stuff): 500 fid = open(self.filename, 'w') 501 self.data = self.data + stuff 502 fid.write(self.data) 503 fid.close()
Note: See TracChangeset
for help on using the changeset viewer.