From 9f40782186ece3320936f211914c9531e490a738 Mon Sep 17 00:00:00 2001 From: Mario Buikhuizen Date: Fri, 3 Apr 2020 12:08:19 +0200 Subject: [PATCH] fix: add support for symlinks --- jupyterlab-snippets/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterlab-snippets/loader.py b/jupyterlab-snippets/loader.py index 4013d25..1cd5f1f 100644 --- a/jupyterlab-snippets/loader.py +++ b/jupyterlab-snippets/loader.py @@ -14,7 +14,7 @@ def __init__(self): def collect_snippets(self): snippets = [] for root_path in self.snippet_paths: - for dirpath, dirnames, filenames in os.walk(root_path): + for dirpath, dirnames, filenames in os.walk(root_path, followlinks=True): for f in filenames: fullpath = PurePath(dirpath).relative_to(root_path).joinpath(f)