public function getModulePath($module, $includingExternal = false)
{
if (!$this->_config) {
throw new \Exception('Configuration is not loaded');
}
if (!isset($this->_config->_modulesPathList[$module])) {
if ($includingExternal && isset($this->_config->_externalModulesPathList[$module])) {
return $this->_config->_externalModulesPathList[$module];
}
throw new \Exception('getModulePath : invalid module name');
}
return $this->_config->_modulesPathList[$module];
}