m2m模型翻译
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.

23 lines
515 B

6 months ago
  1. from __future__ import print_function, unicode_literals, absolute_import
  2. import glob, sys
  3. success = False
  4. in_ironpython = "IronPython" in sys.version
  5. if in_ironpython:
  6. try:
  7. from .ironpython_console import *
  8. success = True
  9. except ImportError:
  10. raise
  11. else:
  12. try:
  13. from .console import *
  14. success = True
  15. except ImportError:
  16. pass
  17. raise
  18. if not success:
  19. raise ImportError(
  20. "Could not find a console implementation for your platform")