def make_path(*path_components):
path_components = [quote(component) for component in path_components if component]<EOL>path = '<STR_LIT:/>'.join(path_components)<EOL>if not path.startswith('<STR_LIT:/>'):<EOL><INDENT>path = '<STR_LIT:/>' + path<EOL><DEDENT>return path<EOL>
Smash together the path components. Empty components will be ignored.