From d4f9d10c8c114a0f8bd13152f2ca1df80f01dc2d Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Mon, 22 Oct 2018 14:08:18 -0700 Subject: [PATCH] Fix missing self. on db_root. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- prjxray/segmaker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prjxray/segmaker.py b/prjxray/segmaker.py index 1be40cb4..9ce7e832 100644 --- a/prjxray/segmaker.py +++ b/prjxray/segmaker.py @@ -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"