From c88fa28082d895e10afcb1d8f4b04a4f0b2d616b Mon Sep 17 00:00:00 2001 From: Thomas Roeblitz Date: Fri, 7 Jun 2024 10:28:37 +0200 Subject: [PATCH] use os.getenv --- eb_hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eb_hooks.py b/eb_hooks.py index 76a5a15502..5a546a9529 100644 --- a/eb_hooks.py +++ b/eb_hooks.py @@ -735,7 +735,7 @@ def pre_sanitycheck_sentence_piece_ld_preload_aarch64(self, *args, **kwargs): ebrootgperftools = os.getenv('EBROOTGPERFTOOLS') lib_tcmalloc_minimal = os.path.join(ebrootgperftools, 'lib64', 'libtcmalloc_minimal.so') env.setvar('LD_PRELOAD', lib_tcmalloc_minimal) - print_msg("Set LD_PRELOAD env var to '%s'", os.environ('LD_PRELOAD')) + print_msg("Set LD_PRELOAD env var to '%s'", os.getenv('LD_PRELOAD')) else: raise EasyBuildError("SentencePiece-specific hook triggered for non-SentencePiece easyconfig?!")