mirror of https://github.com/KLayout/klayout.git
Fixed issue #1393 (GDS2 text format not supported in python module)
This commit is contained in:
parent
c3bda162cb
commit
987bb005da
2
setup.py
2
setup.py
|
|
@ -805,11 +805,13 @@ for pi in dbpi_dirs:
|
|||
mod_name = "_" + os.path.split(os.path.split(pi)[-2])[-1] + "_dbpi"
|
||||
|
||||
pi_sources = glob.glob(os.path.join(pi, "*.cc"))
|
||||
pi_sources += glob.glob(os.path.join(pi, "contrib", "*.cc"))
|
||||
|
||||
pi_ext = Library(
|
||||
config.root + ".db_plugins." + mod_name,
|
||||
define_macros=config.macros() + [("MAKE_DB_PLUGIN_LIBRARY", 1)],
|
||||
include_dirs=[
|
||||
pi,
|
||||
os.path.join("src", "plugins", "common"),
|
||||
_db_path,
|
||||
_tl_path,
|
||||
|
|
|
|||
|
|
@ -41,6 +41,12 @@ class BasicTest(unittest.TestCase):
|
|||
v.read(os.path.join(os.path.dirname(__file__), "..", "gds", "t10.gds"))
|
||||
self.assertEqual(v.top_cell().name, "RINGO")
|
||||
|
||||
def test_4(self):
|
||||
# gds2_text plugin loaded? (issue #1393)
|
||||
v = db.Layout()
|
||||
v.read(os.path.join(os.path.dirname(__file__), "..", "gds2_txt", "read.txt"))
|
||||
self.assertEqual(v.top_cell().name, "RINGO")
|
||||
|
||||
# run unit tests
|
||||
if __name__ == '__main__':
|
||||
suite = unittest.TestSuite()
|
||||
|
|
|
|||
Loading…
Reference in New Issue