def abspath(path):
        if not isabs(path):
            if isinstance(path, unicode):
                cwd = os.getcwdu()
            else:
                cwd = os.getcwd()
            path = join(cwd, path)
        if not splitunc(path)[0] and not splitdrive(path)[0]:
            # cwd lacks a UNC mount point, so it should have a drive
            # letter (but lacks one): determine it
            canon_path = newString(java.io.File(path).getCanonicalPath())
            drive = splitdrive(canon_path)[0]
            path = join(drive, path)
        return normpath(path)
Return the absolute version of a path.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/ntpath.py/abspath