From 40b99fb93f0cbc80083a72e23e93da4bafb365fb Mon Sep 17 00:00:00 2001 From: Devan Franchini Date: Wed, 30 Dec 2015 20:02:44 -0500 Subject: module.py: fixes bug where the module_spec module name was not used This only showed up when the module's target name (filename) was not the same as the modules initialization name. --- layman/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layman/module.py b/layman/module.py index 6d7a40b..99d243b 100644 --- a/layman/module.py +++ b/layman/module.py @@ -48,7 +48,7 @@ class Module(object): for submodule in self.module_spec['provides']: kid = self.module_spec['provides'][submodule] kidname = kid['name'] - kid['module_name'] = '.'.join([mod_name, self.name]) + kid['module_name'] = '.'.join([mod_name, kidname]) kid['is_imported'] = False self.kids[kidname] = kid self.kids_names.append(kidname) -- cgit v1.2.3-65-gdbad