def find_pylintrc():
<EOL>if os.path.exists("<STR_LIT>"):<EOL><INDENT>return os.path.abspath("<STR_LIT>")<EOL><DEDENT>if os.path.exists("<STR_LIT>"):<EOL><INDENT>return os.path.abspath("<STR_LIT>")<EOL><DEDENT>if os.path.isfile("<STR_LIT>"):<EOL><INDENT>curdir = os.path.abspath(os.getcwd())<EOL>while os.path.isfile(os.path.join(curdir, "<STR_LIT>")):<EOL><INDENT>curdir = os.path.abspath(os.path.join(curdir, "<STR_LIT:..>"))<EOL>if os.path.isfile(os.path.join(curdir, "<STR_LIT>")):<EOL><INDENT>return os.path.join(curdir, "<STR_LIT>")<EOL><DEDENT>if os.path.isfile(os.path.join(curdir, "<STR_LIT>")):<EOL><INDENT>return os.path.join(curdir, "<STR_LIT>")<EOL><DEDENT><DEDENT><DEDENT>if "<STR_LIT>" in os.environ and os.path.exists(os.environ["<STR_LIT>"]):<EOL><INDENT>pylintrc = os.environ["<STR_LIT>"]<EOL><DEDENT>else:<EOL><INDENT>user_home = os.path.expanduser("<STR_LIT>")<EOL>if user_home in ("<STR_LIT>", "<STR_LIT>"):<EOL><INDENT>pylintrc = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>pylintrc = os.path.join(user_home, "<STR_LIT>")<EOL>if not os.path.isfile(pylintrc):<EOL><INDENT>pylintrc = os.path.join(user_home, "<STR_LIT>", "<STR_LIT>")<EOL><DEDENT><DEDENT><DEDENT>if not os.path.isfile(pylintrc):<EOL><INDENT>if os.path.isfile("<STR_LIT>"):<EOL><INDENT>pylintrc = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>pylintrc = None<EOL><DEDENT><DEDENT>return pylintrc<EOL>
search the pylint rc file and return its path if it find it, else None