Very sorry about the delay,

On Tue, 11 Apr 2017 10:00:34 +0900
Iwase Yusuke <iwase.yusu...@gmail.com> wrote:

>>From 31118fb3d9b8459e4d648d877c124d1b4920d107 Mon Sep 17 00:00:00 2001
> From: Brad Cowie <b...@gizmoguy.net.nz>
> Date: Sat, 8 Apr 2017 14:05:45 +1200
> Subject: [PATCH] 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.yusu...@gmail.com>
> Signed-off-by: Brad Cowie <b...@gizmoguy.net.nz>
> ---
>  ryu/tests/unit/lib/test_import_module.py |  5 ++--
>  ryu/utils.py                             | 47 
> ++++++++++++++++++--------------
>  2 files changed, 28 insertions(+), 24 deletions(-)
> 

Applied, thanks!

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to