Skip to content

[Bindings.Helper] Add bindings to retrieve config directories#499

Merged
hugtalbot merged 1 commit intosofa-framework:masterfrom
fredroy:binding_helper_utils_paths
May 28, 2025
Merged

[Bindings.Helper] Add bindings to retrieve config directories#499
hugtalbot merged 1 commit intosofa-framework:masterfrom
fredroy:binding_helper_utils_paths

Conversation

@fredroy
Copy link
Contributor

@fredroy fredroy commented May 26, 2025

It allows to write
Sofa.Gui.BaseGUI.SetConfigDirectoryPath(os.path.join(Sofa.Helper.Utils.GetSofaUserLocalDirectory(), 'config'), True)

similarly to runSofa

BaseGUI::setConfigDirectoryPath(FileSystem::append(Utils::getSofaUserLocalDirectory(), "config"), true);

Useful to centralize the config file for both runSofa or pure-python scenes

@fredroy fredroy added enhancement New feature or request pr: status to review labels May 26, 2025
@hugtalbot hugtalbot merged commit 09c18ed into sofa-framework:master May 28, 2025
4 checks passed
RafaelPalomar pushed a commit to Slicer/SofaPython3 that referenced this pull request Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request pr: status ready

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants