Lines Matching refs:head
463 head, tail = _path_split(path)
489 if not _path_isabs(head):
490 head = _path_join(_os.getcwd(), head)
495 if head[1] == ':' and head[0] not in path_separators:
496 head = head[2:]
498 # Strip initial path separator from `head` to complete the conversion
502 head.lstrip(path_separators),
505 return _path_join(head, _PYCACHE, filename)
520 head, pycache_filename = _path_split(path)
524 if head.startswith(stripped_path + path_sep):
525 head = head[len(stripped_path):]
528 head, pycache = _path_split(head)
545 return _path_join(head, base_filename + SOURCE_SUFFIXES[0])