with open("app/shared/frontend/base.html", "r") as f: content = f.read() old_chips = """
""" new_chips = """
""" content = content.replace(old_chips, new_chips) old_tabs = """
Timer
""" new_tabs = """
Overblik
""" content = content.replace(old_tabs, new_tabs) with open("app/shared/frontend/base.html", "w") as f: f.write(content)