Spaces:
Sleeping
Sleeping
File size: 428 Bytes
c493259 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | 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)
|