microscopic-airport-26774
06/25/2023, 8:34 PM("/usr/bin", "/bin", "/usr/local/bin", "/opt/homebrew/bin")
.happy-kitchen-89482
06/26/2023, 2:19 AMhappy-kitchen-89482
06/26/2023, 2:25 AMprepend_path
we support a special symbol like <PATH>
(with literal angle brackets) to represent the contents of $PATH. That would let you embed it anywhere rather than only prepending. it would also reduce naming confusion, because "path" (lower-case) means all sorts of things in this context... Plus we already use this convention in several places (see git grep "<pants>"
microscopic-airport-26774
06/26/2023, 3:50 AMEnvironmentAware(ExecutableSearchPathsOptionMixin) # etc
and a BoolOption that when set would use PATH from the environment, but I couldn't get that PATH in the system_binary_paths
property because (I'm not 100% sure if this is correct) the subsystem isn't instantiated yet. If you know where there's an example or could lead me down the correct path I do think that's an even better solution than either of minehappy-kitchen-89482
06/26/2023, 4:05 AMBoolOption
AFAICT. Instead of you see that literal string in the user's value for the path option, you replace it with the contents of os.environ["PATH"]
curved-television-6568
06/26/2023, 2:54 PMmicroscopic-airport-26774
07/02/2023, 4:15 PM