diff options
author | Brad Cowie <brad@gizmoguy.net.nz> | 2017-05-09 10:48:18 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2017-05-09 10:48:18 +0900 |
commit | a197d87375808c4f99b48af3852eb5d1c986a6a9 (patch) | |
tree | 3bba2ad07a8561df88c087ae36a7b19ad20aa1ac /doc/source/api_ref.rst | |
parent | 077eef801e7ed6f32abdf2e42dbff21620589cfc (diff) |
utils.import_module: Prefer filepath than Python module
Currently, ryu.utils.import_module() prefers the Python module path
than the user specified file path, and if the user app name is the
same with the Python module, this function returns the Python module
instead of the user app.
This patch fixes to try to load "file" before finding the loaded
Python module, and fixes this problem.
Note: With this patch, import_module() will reload (override) a module
if the specified module file name is the same.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: Brad Cowie <brad@gizmoguy.net.nz>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'doc/source/api_ref.rst')
0 files changed, 0 insertions, 0 deletions