Skip to content

Commit

Permalink
pydoc wouldn't generated because it was sending data to a logfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vrillusions committed Sep 23, 2008
1 parent 3bbe5b0 commit 4f860cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions inc/temp05.py
Expand Up @@ -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):
Expand Down
2 changes: 2 additions & 0 deletions temp05listener.py
Expand Up @@ -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
Expand Down

0 comments on commit 4f860cf

Please sign in to comment.