Skip to content

Commit 3e20f52

Browse files
committed
Check for node_modules in ~/.local/lib as last resort
1 parent b895b4e commit 3e20f52

File tree

1 file changed

+3
-0
lines changed
  • python_packages/jupyter_lsp/jupyter_lsp

1 file changed

+3
-0
lines changed

python_packages/jupyter_lsp/jupyter_lsp/types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ def _default_node_roots(self):
257257
# ... but right in %PREFIX% on nt
258258
roots += [pathlib.Path(sys.prefix)]
259259

260+
# check ~/.local/lib for user-wide installations
261+
roots += [pathlib.Path.home() / ".local" / "lib"]
262+
260263
return roots
261264

262265

0 commit comments

Comments
 (0)