Closed JimiC closed 2 years ago
@henon I need to apologize. PythonDirectoryName
is not the correct property to use but EmbeddedPythonHome
is, as you use in https://github.com/henon/Python.Included/blob/eb0cce2a7599a23e38cfb669cd86abff04ca37e2/Python.Deployment/Installer.cs#L96.
PythonDirectoryName
does not include the InstallPath
and it will try to extract the zip at the current working directory.
Really sorry.
@henon
As I was afraid. If you use only the Python.Deployment
library and don't set PythonDirectoryName
the code crashes.
Using Python.Included
on the other hand fortunately has a default value for InstallDirectory
that prevents the crash.
Any chance you can fix that?
I was trying to install
Python
at a custom folder, resulting inpythonnet
not finding thedll
ofPython
, simply becausePython
files get not extracted to the custom folder.The code in question is https://github.com/henon/Python.Included/blob/f6338cf795a6919f88d87018582e292246c1035e/Python.Deployment/Installer.cs#L91
when it should use