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?!")