diff --git a/source-builder/sb/path.py b/source-builder/sb/path.py index 0a5f84c..eda6d50 100644 --- a/source-builder/sb/path.py +++ b/source-builder/sb/path.py @@ -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):