From 4f860cf5db5089b77e21d32495f1d205e2a087e6 Mon Sep 17 00:00:00 2001 From: Todd Eddy Date: Tue, 23 Sep 2008 04:34:35 +0000 Subject: [PATCH] pydoc wouldn't generated because it was sending data to a logfile --- inc/temp05.py | 5 ----- temp05listener.py | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/inc/temp05.py b/inc/temp05.py index 8afbb7d..61d9512 100755 --- a/inc/temp05.py +++ b/inc/temp05.py @@ -11,15 +11,10 @@ # the number of sensors you have sensorCount = 3 -# the logfile to write to, setting to /dev/null effectively disables it -logfile = 'log.txt' - # the path and filename of rrd database rrdfile = 'temp05.rrd' # --- end configuration --- -fsock = open(logfile, 'w') -sys.stdout = fsock def registerSerial(db, serial, num): diff --git a/temp05listener.py b/temp05listener.py index eba07ad..6b81d63 100755 --- a/temp05listener.py +++ b/temp05listener.py @@ -30,6 +30,8 @@ if __name__ == "__main__": + # sends all output to log.txt. Comment out if you don't want to log anything + sys.stdout = open('log.txt', 'w') try: # ---------------- # Setup Everything