5 Util to retrieve a Scenario implementation
6 Searches Impl directory for the named scenario and imports it
16 Util to load the scenario implementation.
18 Assumes that module exists at:
20 Configuration.DataProcessing.Impl.<scenarioName>.py
23 moduleName =
"Configuration.DataProcessing.Impl.%s" % scenarioName
25 module = __import__(moduleName,
26 globals(), locals(), [scenarioName])
27 except ImportError, ex:
28 msg =
"Unable to load Scenario Module:\n"
29 msg +=
"%s\n%s\n" % (moduleName, str(ex))
30 raise RuntimeError, msg
31 instance = getattr(module, scenarioName,
None)
33 msg =
"Unable to retrieve instance of Scenario class:"
34 msg +=
"%s\n From Module\n%s" % (scenarioName, moduleName)
static PFTauRenderPlugin instance