Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add environment bin to $PATH when calling calwf3.e #62

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gbrammer
Copy link

@gbrammer gbrammer commented Jan 5, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant