Changeset 5436 for anuga_core/source/anuga/utilities/system_tools.py
- Timestamp:
- Jun 25, 2008, 5:57:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/utilities/system_tools.py
r5072 r5436 6 6 import sys 7 7 import os 8 9 def log_to_file(filename, s, verbose=True): 10 """Log string to open file descriptor 11 """ 12 13 fid = open(filename, 'a') 14 if verbose: print s 15 fid.write(s + '\n') 16 fid.close() 17 8 18 9 19 def get_user_name():
Note: See TracChangeset
for help on using the changeset viewer.