osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Obtain the file's path.


See the following two methods for obtaining the file's path:

os.path.realpath(file)
or
os.path.abspath(os.path.expanduser(file))

Which is more robust?