MCPcopy
hub / github.com/omkarcloud/botasaurus / relative_path

Function relative_path

botasaurus/utils.py:23–25  ·  view source on GitHub ↗
(path, goback=0)

Source from the content-addressed store, hash-verified

21 return False, -1
22
23def relative_path(path, goback=0):
24 levels = [".."] * (goback + -1)
25 return os.path.abspath(os.path.join(os.getcwd(), *levels, path.strip()))
26
27def remove_nones(list):
28 return [element for element in list if element is not None]

Callers 11

_get_cache_pathFunction · 0.70
get_cached_filesFunction · 0.70
get_itemsMethod · 0.70
get_random_itemsMethod · 0.70
delete_itemsMethod · 0.70
clearMethod · 0.70
save_imageFunction · 0.70
refreshMethod · 0.70

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected