def process_path(label, pth):
if pth is None:<EOL><INDENT>sys.exit("<STR_LIT>" % label)<EOL><DEDENT>if pth.startswith("<STR_LIT:/>"):<EOL><INDENT>pass<EOL><DEDENT>elif pth[<NUM_LIT:0>] in ("<STR_LIT:.>", "<STR_LIT>"):<EOL><INDENT>pth = os.path.realpath(pth)<EOL><DEDENT>else:<EOL><INDENT>pth = os.getcwd() + os.sep + pth<EOL><DEDENT>if not os.path.exists(pth):<EOL><INDENT>sys.exit("<STR_LIT>" % (label, pth))<EOL><DEDENT>return pth<EOL>
check and expand paths