os.path.abspath()

os.path.abspath(path)[source]

Return an absolute path.