summaryrefslogtreecommitdiffstats
path: root/source-builder/sb/path.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-02-27 16:04:29 +1100
committerChris Johns <chrisj@rtems.org>2013-02-27 16:04:29 +1100
commitbc710668cf56f56651bc9c3ddd2464cb9f061458 (patch)
treed0b8621ad18a2735fd4bbaf887f0dfe9a3de296f /source-builder/sb/path.py
parentUpdate the Windows location of new tools. (diff)
downloadrtems-source-builder-bc710668cf56f56651bc9c3ddd2464cb9f061458.tar.bz2
Fix host paths on Windows.
Diffstat (limited to 'source-builder/sb/path.py')
-rw-r--r--source-builder/sb/path.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/source-builder/sb/path.py b/source-builder/sb/path.py
index 1050eee..f138d37 100644
--- a/source-builder/sb/path.py
+++ b/source-builder/sb/path.py
@@ -85,6 +85,7 @@ def isabspath(path):
return path[0] == '/'
def mkdir(path):
+ path = host(path)
if exists(path):
if not isdir(path):
raise error.general('path exists and is not a directory: %s' % (path))
@@ -111,6 +112,7 @@ def removeall(path):
def _onerror(function, path, excinfo):
print 'removeall error: (%r) %s' % (function, path)
+ path = host(path)
shutil.rmtree(path, onerror = _onerror)
return