From 9ebed8fde9cf90091438ba2f20cf965706374123 Mon Sep 17 00:00:00 2001 From: Joey Payne Date: Tue, 10 Nov 2015 14:02:21 -0700 Subject: [PATCH] Remove output dir on export. --- command_line.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/command_line.py b/command_line.py index c68f2fb..a4e7434 100644 --- a/command_line.py +++ b/command_line.py @@ -623,6 +623,9 @@ class CommandBase(object): self.progress_text = 'Removing old output directory...\n' 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') if os.path.exists(temp_dir): shutil.rmtree(temp_dir)