Skip to content

Conversation

@vkarak
Copy link
Contributor

@vkarak vkarak commented Jun 8, 2018

This implementation first resolves the module file relative to ReFrame. If it is inside ReFrame's top-level dir, it uses the standard Python mechanism (from importlib) to import the module. If not it loads it directly from the file assigning it a module name derived from the file's basename.

The current implementation first resolves the module file relative to
ReFrame. If it is inside ReFrame's top-level dir, it uses the standard
Python mechanism (from importlib) to import the module. If not it loads
it directly from the file assigning it a module name derived from the
file's basename.
@codecov-io
Copy link

Codecov Report

Merging #324 into bugfix/load_module_python_file will decrease coverage by 0.04%.
The diff coverage is 93.75%.

Impacted file tree graph

@@                        Coverage Diff                         @@
##           bugfix/load_module_python_file     #324      +/-   ##
==================================================================
- Coverage                           91.47%   91.43%   -0.05%     
==================================================================
  Files                                  66       66              
  Lines                                7828     7811      -17     
==================================================================
- Hits                                 7161     7142      -19     
- Misses                                667      669       +2
Impacted Files Coverage Δ
unittests/test_utility.py 98.74% <100%> (ø) ⬆️
reframe/utility/__init__.py 92.56% <87.5%> (-4.14%) ⬇️
reframe/core/modules.py 68.01% <0%> (-1.4%) ⬇️
reframe/core/config.py 84.54% <0%> (+1.81%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7a19e70...8a2aed8. Read the comment docs.

@teojgo teojgo merged commit 83ae9ac into reframe-hpc:bugfix/load_module_python_file Jun 11, 2018
@vkarak vkarak deleted the bugfix/load_module_python_file-correct-impl branch June 11, 2018 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants