mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Some of the roots can be None in WASM builds
This commit is contained in:
parent
45af79671f
commit
53cda4e36d
1 changed files with 2 additions and 0 deletions
|
|
@ -190,6 +190,8 @@ class FilesFiltering(object):
|
|||
if os.path.exists(path) and os.path.basename(path) in ('site-packages', 'pip-global'):
|
||||
roots.append(path)
|
||||
|
||||
# On WASM some of the roots may not exist, filter those out.
|
||||
roots = [path for path in roots if path is not None]
|
||||
roots.extend([os.path.realpath(path) for path in roots])
|
||||
|
||||
return sorted(set(roots))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue