Obtain the file's path.

Hongyi Zhao hongyi.zhao at gmail.com
Tue Sep 17 11:09:04 EDT 2019


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?


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /