Skip to content

Commit b81f536

Browse files
committed
Fixed bugs inside the initial_set_up function.
1 parent 8643ae8 commit b81f536

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Easy_versioning/main.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -594,13 +594,12 @@ def initial_set_up():
594594

595595
os.makedirs(data_path, exist_ok=True)
596596

597-
footer_path = os.path.join(FOOTER_PATH, "footer.html")
598-
if not os.path.exists(footer_path):
599-
error(f"Footer file does not exist: {footer_path}")
597+
if not os.path.exists(DEFAULT_FOOTER):
598+
error(f"Footer file does not exist: {DEFAULT_FOOTER}")
600599
return
601600
try:
602-
shutil.copy(footer_path, data_path)
603-
success(f"Copied footer from {footer_path} to {data_path}")
601+
shutil.copy(DEFAULT_FOOTER, data_path)
602+
success(f"Copied footer from {DEFAULT_FOOTER} to {data_path}")
604603
except Exception as e:
605604
error(f"Failed to copy footer: {e}")
606605
return

0 commit comments

Comments
 (0)