Skip to content

Commit f5e71eb

Browse files
Eugene Yunakepriestley
Eugene Yunak
authored and
epriestley
committedSep 27, 2012
Aphlict should respect the PATH set in the config.
Reviewed by: epriestley
1 parent 4d4b4f4 commit f5e71eb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎scripts/__init_script__.php

+8
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,11 @@
7878
PhutilTranslator::getInstance()
7979
->setLanguage($translation->getLanguage())
8080
->addTranslations($translation->getTranslations());
81+
82+
// Append any paths to $PATH if we need to.
83+
$paths = PhabricatorEnv::getEnvConfig('environment.append-paths');
84+
if (!empty($paths)) {
85+
$current_env_path = getenv('PATH');
86+
$new_env_paths = implode(':', $paths);
87+
putenv('PATH='.$current_env_path.':'.$new_env_paths);
88+
}

0 commit comments

Comments
 (0)
Failed to load comments.