Lines Matching full:path

23 IDF_SIZE_PY = os.path.join(os.environ['IDF_PATH'], 'tools', 'idf_size.py')
63 def find_first_match(pattern, path): argument
64 for root, _, files in os.walk(path):
67 return os.path.join(root, res[0])
71 def rmdir(path, exclude_file_pattern=None): argument
73 shutil.rmtree(path, ignore_errors=True)
76 for root, dirs, files in os.walk(path, topdown=False):
79 os.remove(os.path.join(root, f))
82 os.rmdir(os.path.join(root, d))
119 self._app_name = os.path.basename(os.path.normpath(app_path))
130 self.build_path = os.path.join(self.work_path, 'build')
131 elif os.path.isabs(self.build_dir):
134 self.build_path = os.path.normpath(os.path.join(self.work_path, self.build_dir))
154 …build directory, either relative to the work directory (if relative path is used) or absolute path.
161 :return: path of the build log file
223 def _expand(self, path): # type: (str) -> str argument
227 if not path:
228 return path
231 path = path.replace(INDEX_PLACEHOLDER, str(self.index))
232 path = path.replace(TARGET_PLACEHOLDER, self.target)
233 path = path.replace(NAME_PLACEHOLDER, self._app_name)
234 … if (FULL_NAME_PLACEHOLDER in path): # to avoid recursion to the call to app_dir in the next line:
235 path = path.replace(FULL_NAME_PLACEHOLDER, self.app_dir.replace(os.path.sep, '_'))
236 wildcard_pos = path.find(WILDCARD_PLACEHOLDER)
240 path = path.replace(WILDCARD_PLACEHOLDER, self.config_name)
246 path = path[0:left_of_wildcard] + path[right_of_wildcard:]
247 path = os.path.expandvars(path)
248 return path
251 if self.size_json_fp and os.path.exists(self.size_json_fp):
254 assert os.path.exists(self.build_path)
255 assert os.path.exists(self.work_path)
261 size_json_fp = os.path.join(self.build_path, SIZE_JSON_FN)
273 if not self.size_json_fp or (not os.path.exists(self.size_json_fp)):
279 'path': self.size_json_fp,
309 if os.path.exists(work_path):
317 if os.path.exists(build_path):
335 sdkconfig_file = os.path.join(work_path, 'sdkconfig')
336 if os.path.exists(sdkconfig_file):
346 sdkconfig_path = os.path.join(work_path, sdkconfig_name)
347 if not sdkconfig_path or not os.path.exists(sdkconfig_path):
362 f_out.write(os.path.expandvars(line))
365 sdkconfig_path = os.path.join(app_path, sdkconfig_name)
369 if not os.path.exists(sdkconfig_path):
386 def is_app(path): argument
399 readme_path = os.path.join(app_path, 'README.md')
400 if not os.path.exists(readme_path):
401 readme_path = os.path.join(app_path, 'README.rst')
402 if not os.path.exists(readme_path):
409 readme_path = get_md_or_rst(os.path.dirname(app_path))