diff --git a/scripts/__init_script__.php b/scripts/__init_script__.php index 7b331195b4..f984c57945 100644 --- a/scripts/__init_script__.php +++ b/scripts/__init_script__.php @@ -1,80 +1,88 @@ 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); +}