Pathlib current file

  • __file__


examples/pathlib/path_lib_current_file.py

from pathlib import Path

this = Path(__file__)

print(this)