Oops, didn't think about daemons.

This commit is contained in:
Jeremy Fincher 2004-08-20 15:26:03 +00:00
parent ed63bc5435
commit a904f0e8d2
1 changed files with 4 additions and 1 deletions

View File

@ -49,10 +49,13 @@ import string
# Stupid printing on import...
from cStringIO import StringIO
try:
# We used to use sys.__stdout__ here, but that caused problems with
# daemonization, since sys.stdout is replaced with a StringIO.
original = sys.stdout
sys.stdout = StringIO()
import this
finally:
sys.stdout = sys.__stdout__
sys.stdout = original
import supybot.conf as conf
import supybot.utils as utils