def with_pathsep(path):
    'Little helper to guarantee that path ends with /'
    return ((path + sep) if (not path.endswith(sep)) else path)
Little helper to guarantee that path ends with /
def with_pathsep(path):
    
    return ((path + sep) if (not path.endswith(sep)) else path)