mirror of
https://github.com/The-OpenROAD-Project/OpenDB.git
synced 2026-03-06 17:31:17 +08:00
11 lines
360 B
Python
11 lines
360 B
Python
import opendbpy as odb
|
|
import os
|
|
current_dir = os.path.dirname(os.path.realpath(__file__))
|
|
tests_dir = os.path.abspath(os.path.join(current_dir, os.pardir))
|
|
opendb_dir = os.path.abspath(os.path.join(tests_dir, os.pardir))
|
|
data_dir = os.path.join(tests_dir, "data")
|
|
|
|
|
|
db = odb.dbDatabase.create()
|
|
lef = odb.read_lef(db, os.path.join(data_dir, "gscl45nm.lef"))
|