Skip to content

Commit

Permalink
Fixed Path
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan3-14 authored Feb 7, 2024
1 parent 2992792 commit c27cda5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mindmaps/electricity/convert-html.py
Original file line number Diff line number Diff line change
@@ -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')
Expand All @@ -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())

0 comments on commit c27cda5

Please sign in to comment.