mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
Add checking support to make sure a host is setup correctly.
This commit is contained in:
@@ -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')
|
||||
|
Reference in New Issue
Block a user