def proper_path(path):
if path.startswith("<STR_LIT>"):<EOL><INDENT>pass<EOL><DEDENT>elif path.startswith("<STR_LIT:/>"):<EOL><INDENT>path = "<STR_LIT>" % path<EOL><DEDENT>elif path.startswith("<STR_LIT:.>"):<EOL><INDENT>while path.startswith("<STR_LIT:.>"):<EOL><INDENT>path = path[<NUM_LIT:1>:]<EOL><DEDENT>if path.startswith("<STR_LIT:/>"):<EOL><INDENT>path = "<STR_LIT>" % path<EOL><DEDENT><DEDENT>else:<EOL><INDENT>path = "<STR_LIT>" % path<EOL><DEDENT>if not path.endswith("<STR_LIT:/>"):<EOL><INDENT>path += "<STR_LIT:/>"<EOL><DEDENT>return path<EOL>
Clean up the path specification so it looks like something I could use.
"./" <path> "/"