DebugClients/Python/coverage/env.py

changeset 6219
d6c795b5ce33
parent 5178
878ce843ca9f
child 6649
f1b3a73831c9
--- 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

eric ide

mercurial