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

Set SAS_DLL_PATH on sasview startup #1568

Merged
merged 1 commit into from
Jun 1, 2020
Merged

Conversation

pkienzle
Copy link
Contributor

Fixes #1560: SAS_DLL_PATH set on sasview startup if not already set in the environment

@wpotrzebowski wpotrzebowski self-requested a review May 30, 2020 04:02
@pkienzle pkienzle changed the base branch from master to ESS_GUI May 30, 2020 04:16
@wpotrzebowski
Copy link
Contributor

5.0 ready for testing on OSX

@wpotrzebowski
Copy link
Contributor

5.0 ready for testing on Win

Copy link
Contributor

@wpotrzebowski wpotrzebowski left a 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

Copy link
Member

@rozyczko rozyczko left a 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:
Copy link
Member

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?

Copy link
Contributor Author

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.

@pkienzle
Copy link
Contributor Author

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

It's in sasmodels kerneldll.py.

@wpotrzebowski wpotrzebowski merged commit 3a842c8 into ESS_GUI Jun 1, 2020
@pkienzle pkienzle deleted the ticket_1560_dll_path branch June 1, 2020 12:00
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.

set the sasmodels dll cache directory in sasview startup
3 participants