diff --git a/parsers/cavetab.py b/parsers/cavetab.py index 3203879..270e6a5 100644 --- a/parsers/cavetab.py +++ b/parsers/cavetab.py @@ -1,7 +1,8 @@ # -*- coding: utf-8 -*- import sys -import settings +sys.path.append("/home/mjg/expoweb/troggle") import expo.models as models +import settings as settings import csv import time @@ -286,4 +287,4 @@ def GetCaveLookup(): Gcavelookup["hauchhole"] = Gcavelookup["234"] return Gcavelookup - \ No newline at end of file + diff --git a/parsers/survex.py b/parsers/survex.py index 017a3ba..93f708e 100644 --- a/parsers/survex.py +++ b/parsers/survex.py @@ -84,7 +84,7 @@ def make_model(name, parent, iter_lines, sf, c, l): survex_block = m, role = models.Role.objects.get(name = roles[role])).save() else: - print "no person", exp, sname, role + print ("no person", exp, sname, role) except AttributeError: print ("Person not found: " + name + " in " + file_ + " " + role).encode('ascii', 'xmlcharrefreplace') except AssertionError, inst: