mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
If the path is empty do prepend a dirsep.
This commit is contained in:
parent
7e3c903e72
commit
73e8afb106
@ -56,7 +56,10 @@ def dirname(path):
|
|||||||
def join(path, *args):
|
def join(path, *args):
|
||||||
path = shell(path)
|
path = shell(path)
|
||||||
for arg in args:
|
for arg in args:
|
||||||
path += '/' + shell(arg)
|
if len(path):
|
||||||
|
path += '/' + shell(arg)
|
||||||
|
else:
|
||||||
|
path = shell(arg)
|
||||||
return shell(path)
|
return shell(path)
|
||||||
|
|
||||||
def abspath(path):
|
def abspath(path):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user