fix(tt_tool): broken PNG render for openlane projects

This commit is contained in:
Uri Shaked
2024-03-01 15:43:45 +02:00
parent 49b8e8724c
commit 12c79b065c
+2 -2
View File
@@ -552,11 +552,11 @@ class Project:
gds_path = os.environ["GDS_PATH"] gds_path = os.environ["GDS_PATH"]
elif self.args.openlane2: elif self.args.openlane2:
gds_path = glob.glob( gds_path = glob.glob(
os.path.join(self.local_dir, "runs/wokwi/results/final/gds/*.gds") os.path.join(self.local_dir, "runs/wokwi/final/gds/*.gds")
)[0] )[0]
else: else:
gds_path = glob.glob( gds_path = glob.glob(
os.path.join(self.local_dir, "runs/wokwi/final/gds/*.gds") os.path.join(self.local_dir, "runs/wokwi/results/final/gds/*.gds")
)[0] )[0]
library = gdstk.read_gds(gds_path) library = gdstk.read_gds(gds_path)
top_cells = library.top_level() top_cells = library.top_level()