Python tricks

Get script directory or file name

Get the filename and directory path of a Python script in the file system using the __file__ variable and the os module.

©2023‐2024hack nota