protected function determineModuleCodePool()
{
if ($this->testMode === true) {
$this->codePool = 'local';
$this->_magentoRootFolder = './' . $this->getModuleNamespace() . '/src';
$this->moduleDirectory = $this->_magentoRootFolder . '/app/code/' . $this->codePool . '/' . $this->vendorNamespace . '/' . $this->moduleName;
} else {
$this->moduleDirectory = $this->getModuleDir();
}
if (preg_match('/community/', $this->moduleDirectory)) {
$this->codePool = 'community';
}
if (preg_match('/local/', $this->moduleDirectory)) {
$this->codePool = 'local';
}
return $this->codePool;
}