Skip to content

[Plugin] FIX environment init on Windows install#295

Merged
hugtalbot merged 1 commit intomasterfrom
guparan-patch-3
Aug 9, 2022
Merged

[Plugin] FIX environment init on Windows install#295
hugtalbot merged 1 commit intomasterfrom
guparan-patch-3

Conversation

@guparan
Copy link
Contributor

@guparan guparan commented Aug 8, 2022

This line: https://github.com/sofa-framework/SofaPython3/blob/master/Plugin/src/SofaPython3/PythonEnvironment.cpp#L255
is not working as expected with an installed SofaPython3 on Windows.

We want PythonEnvironment to auto-add SofaPython3's site-packages but on Windows the SofaPython3.dll is copied in bin (for dependency finding reasons), leading addPythonModulePathsFromPlugin to fail finding SofaPython3's site-packages.

I added another way of searching, keeping the old way as fallback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants