Fixed issue finding PyDBAdditionalThreadInfo from frame eval in cython.
+import sys
try:
try:
from _pydevd_bundle_ext import pydevd_cython as mod
@@ -6,7 +7,6 @@ try:
from _pydevd_bundle import pydevd_cython as mod
except ImportError:
- import sys
import struct
try:
@@ -30,6 +30,11 @@ except ImportError:
check_name = '_pydevd_bundle.%s' % (mod_name,)
mod = getattr(__import__(check_name), mod_name)
+# Regardless of how it was found, make sure it's later available as the
+# initial name so that the expected types from cython in frame eval
+# are valid.
+sys.modules['_pydevd_bundle.pydevd_cython'] = mod
+
trace_dispatch = mod.trace_dispatch
PyDBAdditionalThreadInfo = mod.PyDBAdditionalThreadInfo
