def abspath(path):
if not isabs(path):<EOL><INDENT>if isinstance(path, _unicode):<EOL><INDENT>cwd = os.getcwd()<EOL><DEDENT>else:<EOL><INDENT>cwd = os.getcwd()<EOL><DEDENT>path = join(cwd, path)<EOL><DEDENT>return normpath(path)<EOL>
Return an absolute path.