From 5c980cace70d18ab046d1a698f23277cfcdc8961 Mon Sep 17 00:00:00 2001 From: Keith Rothman <537074+litghost@users.noreply.github.com> Date: Wed, 9 Jan 2019 13:14:03 -0800 Subject: [PATCH] Remove circular import dependency. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com> --- prjxray/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prjxray/util.py b/prjxray/util.py index 7baa127c..67db2290 100644 --- a/prjxray/util.py +++ b/prjxray/util.py @@ -1,7 +1,6 @@ import os import re from .roi import Roi -from .db import Database def get_db_root(): @@ -35,6 +34,7 @@ def slice_xy(): def get_roi(): + from .db import Database (x1, x2), (y1, y2) = roi_xy() db = Database(get_db_root()) return Roi(db=db, x1=x1, x2=x2, y1=y1, y2=y2)