fixing pya module. adding tests

This commit is contained in:
Thomas Ferreira de Lima
2018-12-20 16:10:55 -05:00
parent a288b3ce39
commit 6b37e67de6
4 changed files with 10 additions and 11 deletions
+6 -9
View File
@@ -1,10 +1,7 @@
# import all packages from klayout, such as klayout.db and klayout.tl
# WARNING: doing it manually until it becomes impractical
# TODO: We need a specification document explaining what should go into pya
import klayout
import importlib
__all__ = []
for m in klayout.__all__:
mod = importlib.import_module("klayout." + m)
for mm in mod.__all__:
globals()[mm] = getattr(mod, mm)
from klayout.db import * # noqa
from klayout.tl import * # noqa
from klayout.rdb import * # noqa