Home | History | Annotate | Download | only in rules

Lines Matching refs:path

5 from pathlib import Path
8 def handle_file(path):
10 Return a tuple of (header, path) for the file at path.
13 with open(path) as fd:
16 return header, path
18 return '', path
34 def sort_basename(path):
35 return path.name
46 for path in files:
49 header, path = handle_file(path)
51 paths.append(path)
81 basename = Path(sys.argv[0]).name
87 path = Path(ns.builddir) / f
88 if path.exists():
89 return path
91 path = Path(ns.srcdir) / f
92 if path.exists():
93 return path
94 return Path(f)