def normalize_paths(value, parent=os.curdir):
if not value:<EOL><INDENT>return []<EOL><DEDENT>if isinstance(value, list):<EOL><INDENT>return value<EOL><DEDENT>paths = []<EOL>for path in value.split('<STR_LIT:U+002C>'):<EOL><INDENT>path = path.strip()<EOL>if '<STR_LIT:/>' in path:<EOL><INDENT>path = os.path.abspath(os.path.join(parent, path))<EOL><DEDENT>paths.append(path.rstrip('<STR_LIT:/>'))<EOL><DEDENT>return paths<EOL>
Parse a comma-separated list of paths.

    Return a list of absolute paths.