Homec4science

Add the ability to append to $PATH, for when we shell out to system binaries.

Authored by Ricky Elrod <ricky@elrod.me> on Jul 27 2012, 23:30.

Description

Add the ability to append to $PATH, for when we shell out to system binaries.

Summary:
In some cases, we shell out to things (like Pygments for syntax highlighting).
However, on cloud servers or shared web servers, those binaries aren't always
installed system-wide.

This patch allows for appending to the environment variable $PATH, to look for
other, non-default places for these binaries.

Test Plan:

  • Copied the patch over to a test OpenShift instance and applied it.
  • Added the path to my local copy of Pygments (pygmentize wasn't available on the system) into the Phabricator config.
  • Refreshed a Paste page, and saw colors.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3091

Details

Committed
Ricky Elrod <ricky@elrod.me>Jul 27 2012, 23:30
Pushed
aubortJan 31 2017, 17:16
Parents
rPH486f7c1e8e23: Add aggregated facts to the Facts application
Branches
Unknown
Tags
Unknown

Event Timeline

Ricky Elrod <ricky@elrod.me> committed rPH7c9c3284ed0d: Add the ability to append to $PATH, for when we shell out to system binaries. (authored by Ricky Elrod <ricky@elrod.me>).Jul 27 2012, 23:30