Commit 7ab2afb6 authored by Médéric Boquien's avatar Médéric Boquien
Browse files

We do not prefix modules anymore. Remove now useless code.

parent 6d83c0c3
......@@ -150,6 +150,7 @@ class CreationModule(object):
raise NotImplementedError()
def get_module(name, **kwargs):
"""Get a SED creation module from its name
......@@ -165,11 +166,9 @@ def get_module(name, **kwargs):
a pcigale.creation_modules.Module instance
# Determine the real module name by removing the dotted prefix.
module_name = name.split('.')[0]
module = import_module("." + module_name, 'pcigale.creation_modules')
module = import_module("." + name, 'pcigale.creation_modules')
return module.Module(name=name, **kwargs)
except ImportError:
print('Module ' + module_name + ' does not exists!')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment