This commit is contained in:
Paul Gauthier 2024-09-02 11:17:58 -07:00
parent d7d3f3a740
commit 3bf403ba05

View file

@ -156,11 +156,12 @@ class RepoMap:
return repo_content return repo_content
def get_rel_fname(self, fname): def get_rel_fname(self, fname):
return os.path.relpath(fname, self.root) try:
return os.path.relpath(fname, self.root)
def split_path(self, path): except ValueError:
path = os.path.relpath(path, self.root) # Issue #1288: ValueError: path is on mount 'C:', start on mount 'D:'
return [path + ":"] # Just return the full fname.
return fname
def load_tags_cache(self): def load_tags_cache(self):
path = Path(self.root) / self.TAGS_CACHE_DIR path = Path(self.root) / self.TAGS_CACHE_DIR