Skip to content

Commit 2c2fdf3

Browse files
committed
Also reload shutil
1 parent 96ae41c commit 2c2fdf3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

easybuild/os_hook.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ def install_os_hook():
102102
# - tempfile imports os as _os and this is happening before we have a chance to install our hook.
103103
# - os.path is a separate module (eg posixpath) that imports os into itself and needs to be reloaded to import
104104
# 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`
105106
system_modules = [
106-
"sys", "tempfile", "os.path"
107+
"sys", "tempfile", "os.path", "shutil"
107108
]
108109
for name in system_modules:
109110
if name in sys.modules:

0 commit comments

Comments
 (0)