diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2013-08-28 15:37:24 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-08-28 15:56:12 +0900 |
commit | 667e41cccb7d65c04dddc0aac122ab254ee1a08e (patch) | |
tree | 1839a157ece645c243e45092ae6ab0f52281e165 /doc/source/writing_ryu_app.rst | |
parent | 7acf32e80e8b9a8e99c3f627afaa94504bcffeb3 (diff) |
avoid importing a module twice
due to the way utils.import_module is implemented,
"ryu-manager ryu/app/switches.py" ends up with loading
switches.py module twice.
this commit fixes that by checking if module pathnames specified
on the command line is aliases of already loaded modules.
while the check is incomplete, it should cover the most of useful cases.
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'doc/source/writing_ryu_app.rst')
0 files changed, 0 insertions, 0 deletions