mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Oops, didn't think about daemons.
This commit is contained in:
parent
ed63bc5435
commit
a904f0e8d2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user