mirror of https://github.com/openXC7/prjxray.git
Merge pull request #473 from litghost/fix_circular_dependency
Remove circular import dependency.
This commit is contained in:
commit
f93c16c9bb
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue