mirror of
https://github.com/wassname/pyreadline.git
synced 2026-07-01 16:50:21 +08:00
23 lines
461 B
Python
23 lines
461 B
Python
import glob,sys
|
|
|
|
success = False
|
|
in_ironpython = "IronPython" in sys.version
|
|
|
|
if in_ironpython:
|
|
try:
|
|
from ironpython_console import *
|
|
success = True
|
|
except ImportError:
|
|
raise
|
|
else:
|
|
try:
|
|
from console import *
|
|
success = True
|
|
except ImportError:
|
|
pass
|
|
raise
|
|
|
|
if not success:
|
|
raise ImportError(
|
|
"Could not find a console implementation for your platform")
|