Commit d5d3982d authored by Max Kellermann's avatar Max Kellermann

build/python/build/project.py: add "lazy" parameter to make_build_path()

parent 47341107
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment