def absdir(path):
if not os.path.isabs(path):<EOL><INDENT>path = os.path.normpath(os.path.abspath(os.path.join(os.getcwd(),<EOL>path)))<EOL><DEDENT>if path is None or not os.path.isdir(path):<EOL><INDENT>return None<EOL><DEDENT>return path<EOL>
Return absolute, normalized path to directory, if it exists; None
    otherwise.