From c27cda5c434cc069f57fecc36eb9f6bd7c1cd67b Mon Sep 17 00:00:00 2001 From: Nathan <117750247+Nathan3-14@users.noreply.github.com> Date: Wed, 7 Feb 2024 15:27:49 +0000 Subject: [PATCH] Fixed Path --- mindmaps/electricity/convert-html.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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