Fix missing self. on db_root.

Signed-off-by: Keith Rothman <[email protected]>
This commit is contained in:
Keith Rothman
2018-10-22 14:08:18 -07:00
parent 522a684a7b
commit d4f9d10c8c
+1 -1
View File
@@ -62,7 +62,7 @@ class Segmaker:
def load_grid(self):
'''Load self.grid holding tile addresses'''
with open(os.path.join(db_root, "tilegrid.json"), "r") as f:
with open(os.path.join(self.db_root, "tilegrid.json"), "r") as f:
self.grid = json.load(f)
assert "segments" not in self.grid, "Old format tilegrid.json"