summaryrefslogtreecommitdiffstats
path: root/sb/path.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-11-04 15:16:53 +1100
committerChris Johns <chrisj@rtems.org>2012-11-04 15:16:53 +1100
commit8f84a6b3a0bc7cbce09605f39329d3832682bf63 (patch)
treeffa6a75342192bc7252ff72a9563f3a7678409fb /sb/path.py
parentFix long options. (diff)
downloadrtems-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.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sb/path.py b/sb/path.py
index 8220dcf..0a5f84c 100644
--- a/sb/path.py
+++ b/sb/path.py
@@ -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')