mirror of
https://github.com/YosysHQ/sby.git
synced 2025-08-09 06:41:26 +00:00
Merge pull request #232 from dlmiles/win-qol-cleanopt
-f clean: QoL improvement on Windows concerning file/dir removal locking
This commit is contained in:
commit
74f33880bd
2 changed files with 16 additions and 4 deletions
|
@ -920,10 +920,11 @@ class SbyTask(SbyConfig):
|
|||
def makedirs(self, path):
|
||||
if self.reusedir and os.path.isdir(path):
|
||||
rmtree(path, ignore_errors=True)
|
||||
os.makedirs(path)
|
||||
if not os.path.isdir(path):
|
||||
os.makedirs(path)
|
||||
|
||||
def copy_src(self):
|
||||
os.makedirs(self.workdir + "/src")
|
||||
self.makedirs(self.workdir + "/src")
|
||||
|
||||
for dstfile, lines in self.verbatim_files.items():
|
||||
dstfile = self.workdir + "/src/" + dstfile
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue