diff --git a/mindmaps/electricity/convert-html.py b/mindmaps/electricity/convert-html.py index 6de9f84..09ef624 100644 --- a/mindmaps/electricity/convert-html.py +++ b/mindmaps/electricity/convert-html.py @@ -1,6 +1,6 @@ from bs4 import BeautifulSoup -with open("./index.html", "r") as f: +with open("./mindmaps/electricity/index.html", "r") as f: html_code = f.read() soup = BeautifulSoup(html_code, 'lxml') @@ -18,7 +18,7 @@ title.replace_with(new_title) -with open("index.html", "w") as f: +with open("./mindmaps/electricity/index.html", "w") as f: f.write(soup.prettify()) print(soup.prettify()) \ No newline at end of file