Lines Matching full:paths
11 def join(*paths): argument
13 return os.path.normpath("/".join(paths))
147 NOTE: be careful about passing paths that may contain filenames with
174 returning all files as absolute paths. """
268 def is_path_parent(possible_parent, *paths): argument
271 Multiple paths to test can be specified in which case all
272 specified test paths must be under the parent in order to
282 if not paths:
284 for path in paths:
293 Return all paths in the specific search path matching the wildcard pattern
295 candidates is True, information on all potential candidate paths are
298 paths = (path or os.environ.get('PATH', os.defpath)).split(':')
300 paths.reverse()
303 for index, element in enumerate(paths):
317 files.append((found_path, [os.path.join(p, rel) for p in paths[:index+1]]))
323 def canonicalize(paths, sep=','): argument
324 """Given a string with paths (separated by commas by default), expand
325 each path using os.path.realpath() and return the resulting paths as a
328 # Ignore paths containing "$" as they are assumed to be unexpanded bitbake
329 # variables. Normally they would be ignored, e.g., when passing the paths
335 # Also maintain trailing slashes, as the paths may actually be used as
338 for path in (paths or '').split(sep):