Skip to content

Commit 3c9c8ed

Browse files
committed
reach dir
1 parent be90f78 commit 3c9c8ed

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

deployment/installtutorials.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,12 @@ def process_repo(repo, destination_directory):
5757
print(f"Found tutorial(s) {tutorials}")
5858
for t in tutorials:
5959
shutil.copy(t, destination_directory)
60-
shutil.copy(f"{repo}/{os.path.splitext(t)[0]}.html", destination_directory)
60+
shutil.copy(f"{repo}/{os.path.basename(t)}.html", destination_directory)
6161
if len(tutorials) > 1:
6262
print("More than 1 tutorial found; treating this as a book")
6363
shutil.copy(f"{repo}/index.html", destination_directory)
6464
# copy images (plots) in notebook for faster page loading
65-
shutil.copy(
66-
f"{repo}/_images/*.png", os.path.join(destination_directory, "nboutput")
67-
)
65+
shutil.copy(f"{repo}/_images/*.png", f"{destination_directory}/nboutput")
6866

6967

7068
if __name__ == "__main__":

0 commit comments

Comments
 (0)