diff --git a/reframe/core/runtime.py b/reframe/core/runtime.py index 9a4b006a1d..b4dc2205d2 100644 --- a/reframe/core/runtime.py +++ b/reframe/core/runtime.py @@ -215,11 +215,8 @@ def _load_cmds_tracked(**module): for c in conflicted: commands += modules_system.emit_unload_commands(c) - if 'path' not in mod.keys(): - mod['path'] = None - commands += modules_system.emit_load_commands( - m, module['collection'], module['path'], + m, module.get('collection', False), module.get('path', None) ) return commands