From 8aa2c35793bcf3d55d70111728f29f8dd030da15 Mon Sep 17 00:00:00 2001 From: Roberto Di Remigio Date: Wed, 22 Aug 2018 11:47:17 -0400 Subject: [PATCH] Do not remove build directory on failure --- autocmake/configure.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/autocmake/configure.py b/autocmake/configure.py index 5bfe5b2..b3dfdfa 100644 --- a/autocmake/configure.py +++ b/autocmake/configure.py @@ -57,7 +57,6 @@ def run_cmake(command, build_path, default_build_path): Execute CMake command. """ from subprocess import Popen, PIPE - from shutil import rmtree topdir = os.getcwd() p = Popen(command, shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE) @@ -91,11 +90,6 @@ def run_cmake(command, build_path, default_build_path): if configuration_successful: save_setup_command(sys.argv, build_path) print_build_help(build_path, default_build_path) - else: - if (build_path == default_build_path): - # remove build_path iff not set by the user - # otherwise removal can be dangerous - rmtree(default_build_path) def print_build_help(build_path, default_build_path):