mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-12-13 01:21:41 +00:00
[svn r8071] convert unfound files to lower case and try again
This commit is contained in:
@@ -11,7 +11,10 @@ re_date = re.compile(r"^\s*\*date\s+(.*?)\s*$", re.IGNORECASE)
|
|||||||
|
|
||||||
def fileIterator(directory, filename):
|
def fileIterator(directory, filename):
|
||||||
survex_file = os.path.join(directory, filename + ".svx")
|
survex_file = os.path.join(directory, filename + ".svx")
|
||||||
f = open(os.path.join(settings.SURVEX_DATA, survex_file), "rb")
|
try:
|
||||||
|
f = open(os.path.join(settings.SURVEX_DATA, survex_file), "rb")
|
||||||
|
except:
|
||||||
|
f = open(os.path.join(settings.SURVEX_DATA, survex_file).lower(), "rb")
|
||||||
char = 0
|
char = 0
|
||||||
for line in f.readlines():
|
for line in f.readlines():
|
||||||
line = unicode(line, "latin1")
|
line = unicode(line, "latin1")
|
||||||
@@ -50,7 +53,7 @@ def make_model(name, parent, iter_lines, sf, c, l):
|
|||||||
assert (end.groups()[0]).lower() == (name).lower()
|
assert (end.groups()[0]).lower() == (name).lower()
|
||||||
return None
|
return None
|
||||||
elif date:
|
elif date:
|
||||||
print date.groups()[0]
|
#print date.groups()[0]
|
||||||
m.text = m.text + line
|
m.text = m.text + line
|
||||||
else:
|
else:
|
||||||
m.text = m.text + line
|
m.text = m.text + line
|
||||||
|
|||||||
Reference in New Issue
Block a user