Lines Matching refs:path
6 import os.path
16 EXCLUDE_DIRS = [os.path.join('Modules', '_ctypes', 'libffi_osx'),
17 os.path.join('Modules', '_ctypes', 'libffi_msvc'),
18 os.path.join('Modules', '_decimal', 'libmpdec'),
19 os.path.join('Modules', 'expat'),
20 os.path.join('Modules', 'zlib')]
101 if not os.path.exists(os.path.join(SRCDIR, '.git')):
121 if os.path.exists(os.path.join(SRCDIR, '.git')):
151 # Normalize the path to be able to match using .startswith()
152 filename = os.path.normpath(filename)
153 if any(filename.startswith(path) for path in EXCLUDE_DIRS):
167 for path in file_paths:
168 lines.append(" {}".format(path))
176 fixed = [path for path in file_paths if path.endswith('.py') and
177 reindent.check(os.path.join(SRCDIR, path))]
185 for path in file_paths:
186 abspath = os.path.join(SRCDIR, path)
191 fixed.append(path)
200 for path in file_paths:
201 abspath = os.path.join(SRCDIR, path)
210 fixed.append(path)
212 print('Cannot fix %s: %s' % (path, err))
225 return os.path.join('Misc', 'ACKS') in file_paths
231 return any(p.startswith(os.path.join('Misc', 'NEWS.d', 'next'))