Files
codeql/python/ql/src/Lexical/ToDoComment.py
2018-11-19 15:10:42 +00:00

8 lines
291 B
Python

def realpath(path):
'''
Returns the true, canonical file system path equivalent to the given
path.
'''
# TODO: There may be a more clever way to do this that also handles other,
# less common file systems.
return os.path.normpath(normcase(os.path.realpath(path)))