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

Standardizing Windows data path #158

Merged
merged 1 commit into from
May 31, 2023
Merged

Standardizing Windows data path #158

merged 1 commit into from
May 31, 2023

Conversation

raph-luc
Copy link
Member

@raph-luc raph-luc commented May 26, 2023

Minor change when running on Windows: from USER_DATA_PATH resolving to %LocalAppData%\ansys_systemcoupling_core\ansys_systemcoupling_core, changed to %LocalAppData%\Ansys\ansys_systemcoupling_core using the same root folder %LocalAppData%\Ansys as other applications. No change on Linux, resolves to ~/.local/share/ansys_systemcoupling_core.

Original issue tracker ansys/pyfluent#1588

Same Windows data path naming scheme as in ansys/pyfluent#1615, ansys/pymapdl#2064, ansys/pyprimemesh#485, ansys/ansys-tools-path#44

Also removed try-except block

Food for thought: data path and examples folders are immediately created when import ansys.systemcoupling.core, might be worth changing to create folders only when/if they are actually used

@github-actions github-actions bot added enhancement New features or code improvements bug Something isn't working labels May 26, 2023
@raph-luc raph-luc requested a review from iboyd-ansys May 26, 2023 18:24
Copy link
Collaborator

@iboyd-ansys iboyd-ansys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @raph-luc - looks good.
Sorry about the delay - I am on leave this week so had not been looking in.

@raph-luc
Copy link
Member Author

raph-luc commented May 31, 2023

Thanks @iboyd-ansys, and no problem at all. Merging this as it passed all the tests. Please let me know if any issues come up due to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New features or code improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants