From 73e8afb106361ed55be1a2fc27b7f5bbcc64aed4 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Thu, 14 Feb 2013 18:00:06 +1100 Subject: [PATCH] If the path is empty do prepend a dirsep. --- source-builder/sb/path.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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):