os.path.abspath(path) returns a string version of the absolute path of the path specified : Path : File PYTHON TUTORIALS


PYTHON TUTORIALS » File » Path »

 

os.path.abspath(path) returns a string version of the absolute path of the path specified


import os

print os.path.abspath(".")
print os.path.abspath("..")



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo File
» Path