mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
sb: Fix path.py
is_abspath() now considers zero-length strings Also: Remove not needed line in expand()
This commit is contained in:
parent
703532cb04
commit
dde330b8f8
@ -54,7 +54,7 @@ def host(path):
|
||||
return path
|
||||
|
||||
def is_abspath(path):
|
||||
if path is not None:
|
||||
if path is not None and len(path) > 0:
|
||||
return '/' == path[0]
|
||||
return False
|
||||
|
||||
@ -218,7 +218,6 @@ def removeall(path):
|
||||
_remove_node(path)
|
||||
|
||||
def expand(name, paths):
|
||||
path = shell(path)
|
||||
l = []
|
||||
for p in paths:
|
||||
l += [join(shell(p), name)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user