Mega Code Archive
Categories
/
Python Tutorial
/
File
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("..")