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

pathlib for path management & cavelist fixes

This commit is contained in:
Philip Sargent
2021-03-24 15:46:35 +00:00
parent 7f37327bcd
commit 9a91487375
5 changed files with 69 additions and 31 deletions

View File

@@ -4,7 +4,7 @@ import re
import time
import copy
from unipath import Path
from pathlib import Path
from datetime import datetime, timedelta
from subprocess import call, run
@@ -1257,7 +1257,7 @@ def LoadPositions():
print(" - Regenerating {} {}.3d in {}".format(settings.SURVEXPORT, topdata, settings.SURVEX_DATA))
call([settings.SURVEXPORT, '--pos', '{}.3d'.format(topdata)], cwd = settings.SURVEX_DATA)
topdata = settings.SURVEX_DATA.child(settings.SURVEX_TOPNAME)
topdata = os.fspath(Path(settings.SURVEX_DATA) / settings.SURVEX_TOPNAME)
print((' - Generating a list of Pos from %s.svx and then loading...' % (topdata)))
found = 0