summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/path.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-02-14 18:00:06 +1100
committerChris Johns <chrisj@rtems.org>2013-02-14 18:00:06 +1100
commit73e8afb106361ed55be1a2fc27b7f5bbcc64aed4 (patch)
tree87706117f58968d04c49e8bba7c2d54cfeb6f3f2 /source-builder/sb/path.py
parentRemove the old single tools build set for all archs. (diff)
downloadrtems-source-builder-73e8afb106361ed55be1a2fc27b7f5bbcc64aed4.tar.bz2
If the path is empty do prepend a dirsep.
Diffstat (limited to 'source-builder/sb/path.py')
-rw-r--r--source-builder/sb/path.py5
1 files changed, 4 insertions, 1 deletions
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):