diff options
author | Chris Johns <chrisj@rtems.org> | 2013-02-27 16:04:29 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-02-27 16:04:29 +1100 |
commit | bc710668cf56f56651bc9c3ddd2464cb9f061458 (patch) | |
tree | d0b8621ad18a2735fd4bbaf887f0dfe9a3de296f /source-builder/sb/path.py | |
parent | Update the Windows location of new tools. (diff) | |
download | rtems-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.py | 2 |
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 |