Merge pull request #109 from flyingtime/master

修复windows上出现的错误以及乱码问题
This commit is contained in:
Urinx
2016-10-23 21:58:00 +08:00
committed by GitHub
+5 -1
View File
@@ -958,6 +958,10 @@ class WebWeixin(object):
print '[*] 自动回复模式 ... 关闭'
logging.debug('[*] 自动回复模式 ... 关闭')
if sys.platform.startswith('win'):
import thread
thread.start_new_thread(self.listenMsgMode())
else:
listenProcess = multiprocessing.Process(target=self.listenMsgMode)
listenProcess.start()
@@ -1147,8 +1151,8 @@ if sys.stdout.encoding == 'cp936':
if __name__ == '__main__':
logger = logging.getLogger(__name__)
if not sys.platform.startswith('win'):
import coloredlogs
coloredlogs.install(level='DEBUG')