Skip to content

Commit 4c5102b

Browse files
Add example gallery
1 parent b27e7d6 commit 4c5102b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/generate_gallery.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def gen_previews(self):
130130
def main(app):
131131
logger.info("Starting thumbnail extractor.")
132132

133-
working_dir = Path.getcwd()
133+
working_dir = Path.cwd()
134134
os.chdir(app.builder.srcdir)
135135

136136
file = [HEAD]
@@ -157,7 +157,7 @@ def main(app):
157157
for descr in external_nbs[folder]
158158
]
159159

160-
nb_paths = sorted(Path.glob(f"gallery/{folder}/*.ipynb"))
160+
nb_paths = sorted(Path("gallery", "folder").glob("*.ipynb"))
161161

162162
for nb_path in nb_paths:
163163
nbg = NotebookGenerator(

0 commit comments

Comments
 (0)