Remove output dir on export.
This commit is contained in:
parent
1009cc7eb5
commit
9ebed8fde9
1 changed files with 3 additions and 0 deletions
|
|
@ -623,6 +623,9 @@ class CommandBase(object):
|
||||||
self.progress_text = 'Removing old output directory...\n'
|
self.progress_text = 'Removing old output directory...\n'
|
||||||
|
|
||||||
output_dir = utils.path_join(self.output_dir(), self.project_name())
|
output_dir = utils.path_join(self.output_dir(), self.project_name())
|
||||||
|
if os.path.exists(output_dir):
|
||||||
|
shutil.rmtree(output_dir)
|
||||||
|
|
||||||
temp_dir = utils.path_join(TEMP_DIR, 'webexectemp')
|
temp_dir = utils.path_join(TEMP_DIR, 'webexectemp')
|
||||||
if os.path.exists(temp_dir):
|
if os.path.exists(temp_dir):
|
||||||
shutil.rmtree(temp_dir)
|
shutil.rmtree(temp_dir)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue