Fix #1148: ModuleNotFoundError: No module named 'debugpy'

Fix #1149: UserWarning: incompatible copy of pydevd already imported

Fix formatting for sys.path entry passed to subprocesses.
This commit is contained in:
Pavel Minaev 2022-12-12 14:47:34 -08:00 committed by Pavel Minaev
parent 19ea6f2625
commit 633597b1b5

View file

@ -67,7 +67,7 @@ pydevd_defaults.PydevdCustomization.DEBUG_MODE = 'debugpy-dap'
# This is important when pydevd attaches automatically to a subprocess. In this case, we have to
# make sure that debugpy is properly put back in the game for users to be able to use it.
pydevd_defaults.PydevdCustomization.PREIMPORT = '%r;%s' % (
pydevd_defaults.PydevdCustomization.PREIMPORT = '%s;%s' % (
os.path.dirname(os.path.dirname(debugpy.__file__)),
'debugpy._vendored.force_pydevd'
)