Mar-20-2018, 07:23 AM
In [1]: import pathlib In [2]: path = pathlib.Path('.') In [3]: full_path = path.absolute() In [4]: my_path = full_path.as_posix() In [5]: print(my_path) /home/victor In [6]: type(my_path) Out[6]: str
getting a full path string from a pathlib.PurePath object
|
|