From Java to Python
Pages
Home
Tuesday, October 21, 2014
Python: Get file absolute path
Use
os.path.abspath
function:
import os os.path.abspath('abc/abc.txt')
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment