0

fixed minor bugs, added comments, made python aware of new files, removed old js files

This commit is contained in:
aheadley
2011-04-23 21:46:41 -04:00
parent 37a7b28bc8
commit 1c92776e41
7 changed files with 313 additions and 840 deletions

View File

@@ -115,10 +115,10 @@ class QuadtreeGen(object):
returns -1 if it couldn't be detected, file not found, or nothing in
config.js matched
"""
indexfile = os.path.join(self.destdir, "config.js")
indexfile = os.path.join(self.destdir, "overviewerConfig.js")
if not os.path.exists(indexfile):
return -1
matcher = re.compile(r"maxZoom:\s*(\d+)")
matcher = re.compile(r"maxZoom.*:\s*(\d+)")
p = -1
for line in open(indexfile, "r"):
res = matcher.search(line)