Skip to content

Commit

Permalink
use os.getenv
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Jun 7, 2024
1 parent ef03bcf commit c88fa28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?!")

Expand Down

0 comments on commit c88fa28

Please sign in to comment.