I was having some minor trouble with conda environments in that running wfc3tools.calwf3 with a particular Jupyter kernel associated with a conda environment was trying to execute calwf3.e from the base environment rather than the kernel environment. The proposed fix tries to derive the appropriate bin path based on the result of sys.exec_prefix and prepends this to the PATH when calling the calwf3.e subprocess. The fix should be pretty conservative in that it won't have any effect if either the environment bin path isn't found or if calwf3.e is not in it but is rather somewhere else within the PATH.
I was having some minor trouble with conda environments in that running
wfc3tools.calwf3
with a particular Jupyter kernel associated with a conda environment was trying to executecalwf3.e
from the base environment rather than the kernel environment. The proposed fix tries to derive the appropriatebin
path based on the result ofsys.exec_prefix
and prepends this to the PATH when calling thecalwf3.e
subprocess. The fix should be pretty conservative in that it won't have any effect if either the environmentbin
path isn't found or ifcalwf3.e
is not in it but is rather somewhere else within the PATH.