Lines Matching full:path
16 from pathlib import Path
23 script_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
24 sys.path.insert(0, os.path.join(script_dir, "pylib/build_helpers/"))
46 kwargs['source_dir'] = os.path.relpath(source_dir, cwd)
48 # no meaningful relative path possible
61 parts = Path(fmt).parts
62 b = Path('.')
68 # if fmt is an absolute path, the first iteration will always
70 b = Path(str(b).format(**kwargs))
112 return os.path.abspath(build_dir)
116 def is_zephyr_build(path): argument
117 '''Return true if and only if `path` appears to be a valid Zephyr
120 "Valid" means the given path is a directory which contains a CMake
131 cache = zcmake.CMakeCache.from_build_dir(path)
136 log.dbg(f'{path} is a zephyr build directory',
140 log.dbg(f'{path} is NOT a valid zephyr build directory',
145 def load_domains(path): argument
151 domains_file = Path(path) / 'domains.yaml'
156 build_dir: {path}
159 build_dir: {path}