Lines Matching refs:path
24 def is_interesting(path): argument
25 path = path.lower()
36 if os.path.splitext(path)[1] in uninteresting_extensions:
38 if path.endswith("/notice") or path.endswith("/readme") or path.endswith("/pylintrc"):
121 def do_file(path): argument
122 with open(path, "r") as the_file:
124 content = open(path, "r").read().decode("utf-8")
126 warn("bad UTF-8 in %s" % path)
127 content = open(path, "r").read().decode("iso-8859-1")
132 warn_verbose("ignoring short file %s" % path)
136 warn_verbose("ignoring auto-generated file %s" % path)
141 warn_verbose("ignoring public domain file %s" % path)
143 warn('no copyright notice found in "%s" (%d lines)' % (path, len(lines)))
155 def do_dir(path): argument
162 path = os.path.join(directory, filename)
163 if is_interesting(path):
164 do_file(path)
172 if os.path.isdir(arg):