Skip to content

Commit

Permalink
utmi: Fix importlib compatibility with Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean THOMAS committed Jan 13, 2025
1 parent f855225 commit e7032ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambdalib/cores/usb/utmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def elaborate(self, platform):
o_utmi_rxactive_o=self.utmi.rx_active,
o_utmi_rxerror_o=self.utmi.rx_error,
o_utmi_linestate_o=self.utmi.line_state)
instance_file = importlib.resources.files() / "ulpi_wrapper.v"
instance_file = importlib.resources.files("lambdalib.cores.usb") / "ulpi_wrapper.v"
with instance_file.open("rt") as f:
platform.add_file("ulpi_wrapper.v", f)

Expand Down

0 comments on commit e7032ed

Please sign in to comment.