You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from nmigen import *
from nmigen_boards.icebreaker import ICEBreakerPlatform
class Top(Elaboratable):
def elaborate(self, plat):
plat.add_file("somedir/somefile.txt", "some file content")
return Module()
if __name__ == "__main__":
platform = ICEBreakerPlatform()
products = platform.build(Top(), do_build=True)
with products.extract("somedir/somefile.txt") as filename:
print(filename)
results in FileNotFoundError: [Errno 2] No such file or directory: '/tmp/nmigen_6wxdgqug_somedir/somefile.txt'
The text was updated successfully, but these errors were encountered:
anuejn
changed the title
BuildProducts extract doesnt work for files in subdirectories
BuildProducts.extract() doesnt work for files in subdirectories
Apr 12, 2020
MVCE:
results in
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/nmigen_6wxdgqug_somedir/somefile.txt'
The text was updated successfully, but these errors were encountered: