Commit 90f59973 by willmcgugan

isabs function

parent 30599d4b
...@@ -108,6 +108,11 @@ def recursepath(path, reverse=False): ...@@ -108,6 +108,11 @@ def recursepath(path, reverse=False):
return paths[::-1] return paths[::-1]
return paths return paths
def isabs(path):
"""Return True if path is an absolute path."""
return path.startswith('/')
def abspath(path): def abspath(path):
"""Convert the given path to an absolute path. """Convert the given path to an absolute path.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment