2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-14 21:47:12 +00:00

New SurvexDirectory report

This commit is contained in:
2023-09-05 21:46:10 +03:00
parent 8e2990ca7a
commit 8c721e905a
5 changed files with 51 additions and 1 deletions

View File

@@ -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[""]