python get full path of a directory code example
Example 1: get path to current directory python
import os
os.path.abspath(os.getcwd())
Example 2: get full path of file python
>>> import os
>>> os.path.abspath("mydir/myfile.txt")
'C:/example/cwd/mydir/myfile.txt'