Files

19 lines
428 B
Python
Raw Permalink Normal View History

2024-05-04 15:58:59 +08:00
import asyncio
import sys
2024-05-04 15:58:59 +08:00
from src.cmd import NewInteractiveShell
if __name__ == '__main__':
if sys.platform in ('win32', 'cygwin', 'cli'):
import winloop
winloop.install()
else:
import uvloop
uvloop.install()
2024-05-04 15:58:59 +08:00
loop = asyncio.get_event_loop()
cmd = NewInteractiveShell(loop)
try:
loop.run_until_complete(cmd.start())
except KeyboardInterrupt:
2024-05-04 23:59:52 +08:00
loop.stop()