From 8c721e905ad1276b510ad266bd54eb0d8b489038 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Tue, 5 Sep 2023 21:46:10 +0300 Subject: New SurvexDirectory report --- parsers/survex.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'parsers/survex.py') diff --git a/parsers/survex.py b/parsers/survex.py index cebeb91..52ecc70 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -68,6 +68,8 @@ class SurvexLeg: def IdentifyCave(cavepath): """Given a file path for a survex file, or a survex-block path, return the cave object + + This is clearly getting it badly wrong, see /survexdirs report. """ caveslist = GetCaveLookup() if cavepath.lower() in caveslist: @@ -1171,6 +1173,8 @@ class LoadingSurvex: it sets the primarysurvexfile. This is correct as it should be set on the first file in the directory, where first is defined by the *include ordering. Which is what we are doing. + + This does NOT set the current cave id in the SurvexDirectory, that happens later """ if not headpath: return self.svxdirs[""] -- cgit v1.2.3