Skip to content

Commit

Permalink
Fixed issue finding PyDBAdditionalThreadInfo from frame eval in cython.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Nov 8, 2018
1 parent ec54926 commit 0183a57
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _pydevd_bundle/pydevd_cython_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
try:
try:
from _pydevd_bundle_ext import pydevd_cython as mod
Expand All @@ -6,7 +7,6 @@
from _pydevd_bundle import pydevd_cython as mod

except ImportError:
import sys
import struct

try:
Expand All @@ -30,6 +30,11 @@
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
Expand Down

0 comments on commit 0183a57

Please sign in to comment.