3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-08-26 06:36:02 +00:00

Fix heredoc in sub dir

Also change log to use absolute path for consistency with the copy/link logs.
This commit is contained in:
Krystine Sherwin 2025-08-02 10:40:52 +12:00
parent 1d28294391
commit 5fffe7eda6
No known key found for this signature in database
3 changed files with 7 additions and 3 deletions

View file

@ -1039,8 +1039,9 @@ class SbyTask(SbyConfig):
self.makedirs(outdir)
for dstfile, lines in self.verbatim_files.items():
dstfile = self.workdir + "/src/" + dstfile
self.log(f"Writing '{dstfile}'.")
dstfile = outdir / dstfile
self.log(f"Writing '{dstfile.absolute()}'.")
dstfile.parent.mkdir(parents=True, exist_ok=True)
with open(dstfile, "w") as f:
for line in lines: