Python Example | Get Directory Path of the Current Python File

This python example code will show us how to get the directory path of the current running python file.

>>> import pathlib
>>> str(pathlib.Path.cwd())
C:\Users\me\study