Skip to content

Commit

Permalink
add Tee.flush to fix some paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jaykrell committed Jun 1, 2016
1 parent 98638a6 commit 3fefef0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/python/pylib.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ def write(self, c):
if self.b != None and self.a != self.b:
self.b.write(c)

def flush(self):
if self.a != None:
self.a.flush()
if self.b != None and self.a != self.b:
self.b.flush()

sys.stdout = Tee(sys.stdout, open(sys.argv[0] + ".log", "a"))

# Workaround regression in m3-sys/m3cc/src/m3makefile.
Expand Down

0 comments on commit 3fefef0

Please sign in to comment.