RepAIr / helper_functions /checkpoint.py
w3680's picture
added whole program
c493259
raw
history blame contribute delete
428 Bytes
import os
def checkpoint(path):
"""Prints a message indicating the successful execution of a script.
It will give you the script name where this function is calles by default.
Alternatively, you can set a string to display a custom message."""
script_name = os.path.basename(path) # Extract just the filename
print("-" * 30)
print(f"{script_name} successfully executed!")
print("-" * 30)