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

View File

@ -49,10 +49,13 @@ import string
# Stupid printing on import... # Stupid printing on import...
from cStringIO import StringIO from cStringIO import StringIO
try: 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() sys.stdout = StringIO()
import this import this
finally: finally:
sys.stdout = sys.__stdout__ sys.stdout = original
import supybot.conf as conf import supybot.conf as conf
import supybot.utils as utils import supybot.utils as utils