Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/rt-thread
/ ParentPaths
Function
ParentPaths
tools/targets/eclipse.py:51–56 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
49
all_paths = []
50
51
def
ParentPaths(path):
52
ret = os.path.dirname(path)
53
if
ret == path or ret ==
''
:
54
return
[]
55
56
return
[ret] + ParentPaths(ret)
57
58
for
path in paths:
59
# path = os.path.abspath(path)
Callers
1
CollectPaths
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected