Dosya tam yolunu alma

37

import pathlib

# path of the given file
print(pathlib.Path("my_file.txt").parent.absolute())

# current working directory
print(pathlib.Path().absolute())

Comments

Submit
0 Comments