From 810ca7e57b9adbf3f5bed8a1dd9c9c5dd5423feb Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Fri, 8 Nov 2024 11:37:38 +0100 Subject: [PATCH] Avoid warning in `make_module_pythonpath` --- easybuild/framework/easyblock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easybuild/framework/easyblock.py b/easybuild/framework/easyblock.py index 41028314cd..57a1a556a7 100644 --- a/easybuild/framework/easyblock.py +++ b/easybuild/framework/easyblock.py @@ -1429,9 +1429,9 @@ def make_module_pythonpath(self): if use_ebpythonprefixes: path = '' # EBPYTHONPREFIXES are relative to the install dir - lines = self.module_generator.prepend_paths(EBPYTHONPREFIXES, path) + lines = self.module_generator.prepend_paths(EBPYTHONPREFIXES, path, warn_exists=False) else: - lines = self.module_generator.prepend_paths(PYTHONPATH, python_paths) + lines = self.module_generator.prepend_paths(PYTHONPATH, python_paths, warn_exists=False) return [lines] if lines else [] def make_module_extra(self, altroot=None, altversion=None):