def abspath(path):
    if not isabs(path):
        if isinstance(path, unicode):
            cwd = os.getcwdu()
        else:
            cwd = os.getcwd()
        path = join(cwd, path)
    return normpath(path)

# realpath is a no-op on systems without islink support
Return an absolute path.
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/macpath.py/abspath