You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
428 B
18 lines
428 B
import asyncio
|
|
import sys
|
|
|
|
from src.cmd import NewInteractiveShell
|
|
|
|
if __name__ == '__main__':
|
|
if sys.platform in ('win32', 'cygwin', 'cli'):
|
|
import winloop
|
|
winloop.install()
|
|
else:
|
|
import uvloop
|
|
uvloop.install()
|
|
loop = asyncio.get_event_loop()
|
|
cmd = NewInteractiveShell(loop)
|
|
try:
|
|
loop.run_until_complete(cmd.start())
|
|
except KeyboardInterrupt:
|
|
loop.stop()
|
|
|