mirror of https://github.com/huashengdun/webssh
Use selector event loop for Python 3.8+ on windows
parent
19d816f991
commit
760c74a2f7
|
@ -1,4 +1,11 @@
|
||||||
|
import sys
|
||||||
from webssh._version import __version__, __version_info__
|
from webssh._version import __version__, __version_info__
|
||||||
|
|
||||||
|
|
||||||
__author__ = 'Shengdun Hua <webmaster0115@gmail.com>'
|
__author__ = 'Shengdun Hua <webmaster0115@gmail.com>'
|
||||||
|
|
||||||
|
|
||||||
|
if sys.platform == 'win32' and sys.version_info.major == 3 and \
|
||||||
|
sys.version_info.minor >= 8:
|
||||||
|
import asyncio
|
||||||
|
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
|
||||||
|
|
Loading…
Reference in New Issue