def docRelpath(filename, baseDir=None):
    if (baseDir is None):
        baseDir = thisDoc.extensionSchemaRelDirname
    if ((baseDir is not None) and (not (UrlUtil.isAbsolute(filename) or os.path.isabs(filename)))):
        return posixpath.relpath(filename, baseDir)
    return filename
def docRelpath(filename, baseDir=None):
    if (baseDir is None):
        baseDir = thisDoc.extensionSchemaRelDirname
    if ((baseDir is not None) and (not (UrlUtil.isAbsolute(filename) or os.path.isabs(filename)))):
        return posixpath.relpath(filename, baseDir)
    return filename