We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
shutil
1 parent 96ae41c commit 2c2fdf3Copy full SHA for 2c2fdf3
easybuild/os_hook.py
@@ -102,8 +102,9 @@ def install_os_hook():
102
# - tempfile imports os as _os and this is happening before we have a chance to install our hook.
103
# - os.path is a separate module (eg posixpath) that imports os into itself and needs to be reloaded to import
104
# our hook for eg `os.path.expanduser` to work with `os.environ['HOME'] = '...'`
105
+ # - shutil is used in CUDA sanity check with `shutil.which` to find `cuobjdum`
106
system_modules = [
- "sys", "tempfile", "os.path"
107
+ "sys", "tempfile", "os.path", "shutil"
108
]
109
for name in system_modules:
110
if name in sys.modules:
0 commit comments