find files with root path in python code example
Example 1: find python path windows
>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)
'C:\\Python25'
Example 2: python get path of current file
import pathlib
pathlib.Path(__file__).parent.absolute()