mirror of https://github.com/openXC7/prjxray.git
Remove circular import dependency.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
This commit is contained in:
parent
e98c808443
commit
5c980cace7
|
|
@ -1,7 +1,6 @@
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
from .roi import Roi
|
from .roi import Roi
|
||||||
from .db import Database
|
|
||||||
|
|
||||||
|
|
||||||
def get_db_root():
|
def get_db_root():
|
||||||
|
|
@ -35,6 +34,7 @@ def slice_xy():
|
||||||
|
|
||||||
|
|
||||||
def get_roi():
|
def get_roi():
|
||||||
|
from .db import Database
|
||||||
(x1, x2), (y1, y2) = roi_xy()
|
(x1, x2), (y1, y2) = roi_xy()
|
||||||
db = Database(get_db_root())
|
db = Database(get_db_root())
|
||||||
return Roi(db=db, x1=x1, x2=x2, y1=y1, y2=y2)
|
return Roi(db=db, x1=x1, x2=x2, y1=y1, y2=y2)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue