def real_to_local(path):
    path = unixnorm(path)
    if (os.path.abspath(os.path.normpath(path)) == unixnorm(local_to_real('/.settings.bin'))):
        return '/.settings.bin'
    path = os.path.abspath(os.path.normpath(path))
    froot = os.path.abspath(os.path.normpath(files_root))
    path = path[len(froot):].replace(os.path.sep, '/')
    return path
def real_to_local(path):
    path = unixnorm(path)
    if (os.path.abspath(os.path.normpath(path)) == unixnorm(local_to_real('/.settings.bin'))):
        return '/.settings.bin'
    path = os.path.abspath(os.path.normpath(path))
    froot = os.path.abspath(os.path.normpath(files_root))
    path = path[len(froot):].replace(os.path.sep, '/')
    return path