List of notes tagged python

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 hack nota