-
Notifications
You must be signed in to change notification settings - Fork 41
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
Set SAS_DLL_PATH on sasview startup #1568
Conversation
5.0 ready for testing on OSX |
5.0 ready for testing on Win |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good but I am wondering where "compiled_models" folder should created. I cannot see this in sasview repo but I may be missing something
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks OK. Can be merged as is.
from sas import get_custom_config | ||
# initialize sasmodels settings | ||
from sas import get_custom_config, get_user_dir | ||
if "SAS_DLL_PATH" not in os.environ: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make sense to add SAS_DLL_PATH
to the custom config file, like SAS_OPENCL
does below?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not really an option that the user needs to change, and there is no support for changing it in the gui, so no need to have it in the user config file.
It's in sasmodels kerneldll.py. |
Fixes #1560: SAS_DLL_PATH set on sasview startup if not already set in the environment