From 2f9df0f6e26cdb4dc258d58a36ebf461b46bf933 Mon Sep 17 00:00:00 2001 From: hanchuan <whc.shmily@gmail.com> Date: Wed, 23 Feb 2022 11:29:44 +0100 Subject: [PATCH] [bin][extractmodule] correct epilog of script --- bin/extract_as_new_module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/extract_as_new_module.py b/bin/extract_as_new_module.py index f7d2c46d67..4a7cb41066 100755 --- a/bin/extract_as_new_module.py +++ b/bin/extract_as_new_module.py @@ -570,7 +570,7 @@ if __name__ == "__main__": ----------------------------------------------------------- Example usage: - ./dumux/bin/extractmodule/extract_as_new_module.py dumux-fracture appl test + python3 dumux/bin/extract_as_new_module.py dumux-fracture appl test (extracts the subFolder appl and test from the module dumux-fracture) @@ -643,7 +643,7 @@ if __name__ == "__main__": cmakeMacroPattern = os.path.join(newModulePath, "cmake/modules/*Macros.cmake") sourceCMakeMacroName = glob.glob(cmakeMacroPattern)[0] # remove the generated CMake directory and copy the one from the source module - shutil. rmtree(os.path.join(newModulePath, "cmake")) + shutil.rmtree(os.path.join(newModulePath, "cmake")) copySubFolders(["cmake"], modulePath, newModulePath) # get the name of the extracted CMake macro file name and rename it to match the new module name newModuleCMakeMacroFile = glob.glob(cmakeMacroPattern)[0] -- GitLab