Skip to content
Snippets Groups Projects
Commit ad38d627 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

fix script to ignore images

parent 113dca79
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,8 @@ def replace_all_in(folder): ...@@ -30,6 +30,8 @@ def replace_all_in(folder):
for root, dirs, files in os.walk(folder): for root, dirs, files in os.walk(folder):
for name in files: for name in files:
filename = os.path.join(root, name) filename = os.path.join(root, name)
if filename.endswith(".md"):
# only do this on markdown files
replace(root, filename) replace(root, filename)
def replace(folder, filename): def replace(folder, filename):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment