from pathlib import Path # Get the path of the current script my_dir = Path(__file__).name print("Current Working Directory: ") print(my_dir)