diff --git a/easybuild/easyblocks/t/tkinter.py b/easybuild/easyblocks/t/tkinter.py index 31a0b776f0..26e54e30a0 100644 --- a/easybuild/easyblocks/t/tkinter.py +++ b/easybuild/easyblocks/t/tkinter.py @@ -39,7 +39,7 @@ from easybuild.easyblocks.generic.pythonpackage import det_pylibdir from easybuild.easyblocks.python import EB_Python from easybuild.tools.build_log import EasyBuildError -from easybuild.tools.filetools import move_file, remove_dir +from easybuild.tools.filetools import clean_dir, move_file from easybuild.tools.modules import get_software_root from easybuild.tools.systemtools import get_shared_lib_ext @@ -95,7 +95,7 @@ def install_step(self): # Reset the install directory and remove it if it already exists. It will not have been removed automatically # at the start of the install step, as self.installdir pointed at the temporary install directory. self.installdir = self.orig_installdir - remove_dir(self.installdir) + clean_dir(self.installdir) dest_pylibdir = os.path.join(self.installdir, det_pylibdir())