diff -r bedab77d0fa3 -r d6c795b5ce33 DebugClients/Python/coverage/env.py --- a/DebugClients/Python/coverage/env.py Sat Apr 07 13:17:06 2018 +0200 +++ b/DebugClients/Python/coverage/env.py Sat Apr 07 13:35:10 2018 +0200 @@ -4,6 +4,7 @@ """Determine facts about the environment.""" import os +import platform import sys # Operating systems. @@ -11,7 +12,12 @@ LINUX = sys.platform == "linux2" # Python implementations. -PYPY = '__pypy__' in sys.builtin_module_names +PYPY = (platform.python_implementation() == 'PyPy') +if PYPY: + PYPYVERSION = sys.pypy_version_info + +JYTHON = (platform.python_implementation() == 'Jython') +IRONPYTHON = (platform.python_implementation() == 'IronPython') # Python versions. PYVERSION = sys.version_info