Skip to content

Commit

Permalink
Fix microsoft#1148: ModuleNotFoundError: No module named 'debugpy'
Browse files Browse the repository at this point in the history
Fix microsoft#1149: UserWarning: incompatible copy of pydevd already imported

Fix formatting for sys.path entry passed to subprocesses.
  • Loading branch information
Pavel Minaev committed Dec 12, 2022
1 parent 79b7c56 commit e95cc2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debugpy/_vendored/force_pydevd.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def debugpy_breakpointhook():

# 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'
)

0 comments on commit e95cc2e

Please sign in to comment.