If the path is empty do prepend a dirsep.

This commit is contained in:
Chris Johns 2013-02-14 18:00:06 +11:00
parent 7e3c903e72
commit 73e8afb106

View File

@ -56,7 +56,10 @@ def dirname(path):
def join(path, *args):
path = shell(path)
for arg in args:
path += '/' + shell(arg)
if len(path):
path += '/' + shell(arg)
else:
path = shell(arg)
return shell(path)
def abspath(path):