summaryrefslogtreecommitdiffstats
path: root/parsers/survex.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-03-24 15:46:35 +0000
committerPhilip Sargent <philip.sargent@klebos.com>2021-03-24 15:46:35 +0000
commit9a914873750cee6fb2cde17a45fcd7f7a487a796 (patch)
tree3c93df2cfdcd52b7501761be8c7273f749e052a1 /parsers/survex.py
parent7f37327bcdb3d6588a5ca189f7f0ecfba3f95ffa (diff)
downloadtroggle-9a914873750cee6fb2cde17a45fcd7f7a487a796.tar.gz
troggle-9a914873750cee6fb2cde17a45fcd7f7a487a796.tar.bz2
troggle-9a914873750cee6fb2cde17a45fcd7f7a487a796.zip
pathlib for path management & cavelist fixes
Diffstat (limited to 'parsers/survex.py')
-rw-r--r--parsers/survex.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/parsers/survex.py b/parsers/survex.py
index 2ca2f1d..6fdf046 100644
--- a/parsers/survex.py
+++ b/parsers/survex.py
@@ -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