purple-plastic-57801
03/07/2023, 9:29 PMbroad-processor-92400
03/07/2023, 10:08 PMRUNNING_WITHIN_PANTS=1 variable within https://www.pantsbuild.org/docs/reference-subprocess-environment.
I'm just guessing at what you're doing, though. What type of logic are you having to conditiionalise? Deciding when to use importlib.resources....?purple-plastic-57801
03/07/2023, 10:09 PMpurple-plastic-57801
03/07/2023, 10:10 PMpurple-plastic-57801
03/07/2023, 10:37 PMbroad-processor-92400
03/07/2023, 10:40 PM[subprocess-environment] in this case), and the bold heading for each option says the config key (env_vars).
So, for that one, it'd be something like:
[subprocess-environment]
env_vars = ["RUNNING_WITHIN_PANTS=1"]purple-plastic-57801
03/07/2023, 10:41 PM