Skip to content

When symlinking a .def to a target without .def suffix, file can't be loaded. #1531

Closed
@mithro

Description

@mithro

I have a .def file at /build/cas/a97/a971575b8189215e2db9f3e6fbfa26b6254f140191604c8194307564d724f936_010e8e6d and a symlink to that file verilog_counter-asap7-sc7p5t_rev28_lvt-place_and_route_detail_routed.def -> /build/cas/a97/a971575b8189215e2db9f3e6fbfa26b6254f140191604c8194307564d724f936_010e8e6d

When I try to open the file with the ly.read('verilog_counter-asap7-sc7p5t_rev28_lvt-place_and_route_detail_routed.def') I get RuntimeError: Stream has unknown format: /build/cas/a97/a971575b8189215e2db9f3e6fbfa26b6254f140191604c8194307564d724f936_010e8e6d in Layout.read

If I replace the symlink with a file containing the same as /build/cas/a97/a971575b8189215e2db9f3e6fbfa26b6254f140191604c8194307564d724f936_010e8e6d, KLayout then is able to read the file.

I think this is because something is resolving the symlink and the loading depends on the file extension to detect the file format?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions