def InCache(str_ = ''): if os.path.isfile(Path.tempCache(str_)) : return True, Path.tempCache(str_) elif os.path.isfile(Path.cache(str_)) : return True, Path.cache(str_) return False, ''