Add checking support to make sure a host is setup correctly.

This commit is contained in:
Chris Johns
2012-11-04 15:16:53 +11:00
parent 4c32621235
commit 8f84a6b3a0
11 changed files with 389 additions and 167 deletions

View File

@@ -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')