mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
Support nested imports, closes #351
This commit is contained in:
parent
a3df483c80
commit
7a43af232e
3 changed files with 28 additions and 1 deletions
|
|
@ -2137,7 +2137,7 @@ def convert(
|
|||
locals = {}
|
||||
globals = {"r": recipes, "recipes": recipes}
|
||||
for import_ in imports:
|
||||
globals[import_] = __import__(import_)
|
||||
globals[import_.split(".")[0]] = __import__(import_)
|
||||
exec(code_o, globals, locals)
|
||||
fn = locals["fn"]
|
||||
if dry_run:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue