Remove circular import dependency.

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
Keith Rothman 2019-01-09 13:14:03 -08:00
parent e98c808443
commit 5c980cace7
1 changed files with 1 additions and 1 deletions

View File

@ -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)