build/python/build/project.py: add "lazy" parameter to make_build_path()
This commit is contained in:
parent
6d8f92c185
commit
0360f79e6f
@ -72,8 +72,10 @@ class Project:
|
||||
|
||||
return path
|
||||
|
||||
def make_build_path(self, toolchain):
|
||||
def make_build_path(self, toolchain, lazy=False):
|
||||
path = os.path.join(toolchain.build_path, self.base)
|
||||
if lazy and os.path.isdir(path):
|
||||
return path
|
||||
try:
|
||||
shutil.rmtree(path)
|
||||
except FileNotFoundError:
|
||||
|
Loading…
Reference in New Issue
Block a user