diff options
author | Chris Johns <chrisj@rtems.org> | 2012-11-04 15:16:53 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2012-11-04 15:16:53 +1100 |
commit | 8f84a6b3a0bc7cbce09605f39329d3832682bf63 (patch) | |
tree | ffa6a75342192bc7252ff72a9563f3a7678409fb /sb/path.py | |
parent | Fix long options. (diff) | |
download | rtems-source-builder-8f84a6b3a0bc7cbce09605f39329d3832682bf63.tar.bz2 |
Add checking support to make sure a host is setup correctly.
Diffstat (limited to 'sb/path.py')
-rw-r--r-- | sb/path.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -75,6 +75,9 @@ def isdir(path): def isfile(path): return os.path.isfile(host(path)) +def isabspath(path): + return path[0] == '/' + if __name__ == '__main__': print host('/a/b/c/d-e-f') print host('//a/b//c/d-e-f') |