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:
@@ -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[""]
|
||||
|
||||
Reference in New Issue
Block a user