From 8c3f0c8e41a37f47eb5548377089e5a3402e4917 Mon Sep 17 00:00:00 2001 From: Fabio Zadrozny Date: Fri, 23 Jul 2021 10:24:52 -0300 Subject: [PATCH] Consider files in pip-global to be library files. Fixes #664 --- src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_filtering.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_filtering.py b/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_filtering.py index cebce69f4..b103ac663 100644 --- a/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_filtering.py +++ b/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_filtering.py @@ -199,7 +199,7 @@ def _get_default_library_roots(cls): roots.append(site_paths) for path in sys.path: - if os.path.exists(path) and os.path.basename(path) == 'site-packages': + if os.path.exists(path) and os.path.basename(path) in ('site-packages', 'pip-global'): roots.append(path) roots.extend([os.path.realpath(path) for path in roots])