Lines Matching refs:path
20 _SRC_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
33 for path in module_paths:
34 if path == __file__:
36 path = os.path.abspath(path)
37 if not path.startswith(_SRC_ROOT):
40 if (path.endswith('.pyc')
41 or (path.endswith('c') and not os.path.splitext(path)[1])):
42 path = path[:-1]
43 src_paths.add(path)
51 root = os.path.relpath(options.root, _SRC_ROOT)
55 args.extend(('--output', os.path.relpath(options.output, _SRC_ROOT)))
59 args.extend(('--allowlist', os.path.relpath(allowlist, _SRC_ROOT)))
60 args.append(os.path.relpath(options.module, _SRC_ROOT))
69 yield os.path.join(root, filename)
103 sys.path[0] = os.path.dirname(options.module)
112 options.root = os.path.dirname(options.module)
115 for path in options.allowlists:
117 os.path.abspath(p) for p in _find_python_in_directory(path))
119 paths = [os.path.relpath(p, options.root) for p in paths_set]
129 for path in sorted(paths):
130 out.write(prefix + path + '\n')