Anchor the cache to the project root

This commit is contained in:
Paul Gauthier 2023-07-13 14:01:07 -07:00
parent b05b8e2087
commit b685695fef

View file

@ -6,6 +6,7 @@ import subprocess
import sys import sys
import tempfile import tempfile
from collections import Counter, defaultdict from collections import Counter, defaultdict
from pathlib import Path
import networkx as nx import networkx as nx
import tiktoken import tiktoken
@ -231,13 +232,13 @@ class RepoMap:
return True return True
def load_tags_cache(self): def load_tags_cache(self):
self.TAGS_CACHE = Cache(self.TAGS_CACHE_DIR) self.TAGS_CACHE = Cache(Path(self.root) / self.TAGS_CACHE_DIR)
def save_tags_cache(self): def save_tags_cache(self):
pass pass
def load_ident_cache(self): def load_ident_cache(self):
self.IDENT_CACHE = Cache(self.IDENT_CACHE_DIR) self.IDENT_CACHE = Cache(Path(self.root) / self.IDENT_CACHE_DIR)
def save_ident_cache(self): def save_ident_cache(self):
pass pass