Aphlict should respect the PATH set in the config.

Reviewed by: epriestley
This commit is contained in:
Eugene Yunak
2012-08-29 21:16:33 +01:00
committed by epriestley
parent 4d4b4f4837
commit f5e71eb889

View File

@@ -78,3 +78,11 @@ $translation = PhabricatorEnv::newObjectFromConfig('translation.provider');
PhutilTranslator::getInstance()
->setLanguage($translation->getLanguage())
->addTranslations($translation->getTranslations());
// Append any paths to $PATH if we need to.
$paths = PhabricatorEnv::getEnvConfig('environment.append-paths');
if (!empty($paths)) {
$current_env_path = getenv('PATH');
$new_env_paths = implode(':', $paths);
putenv('PATH='.$current_env_path.':'.$new_env_paths);
}