String path = + Environment.GetEnvironmentVariable("PATH", EnvironmentVariableTarget.Machine) Įnvironment.SetEnvironmentVariable("PATH", path, EnvironmentVariableTarget.Process) Įnvironment.SetEnvironmentVariable("PYTHONHOME", EnvironmentVariableTarget.Process) Įnvironment.SetEnvironmentVariable("PYTHONPATH ", EnvironmentVariableTarget.Process) įirst added as a reference, Note: I have verified that I am using 64 bit python (2.7 and 3.x) and I have verified that Python.Runtime and are also targeting 64 bit so I dont think bitness is the issue. Done: Verified using the Console project and it also fails silently on the PythonEngine.Initialize() call. I will try to put this in a console application to try to remove unit tests (and resharper) from the equation but I don't think that will help. I have looked at the FAQ and searched the google (event Bing!!) and whilst there is plenty of info out there it all looks old.Īnyone had any luck with this kind of setup, my ultimate goal is to embed python in a. The Unit Test then fails with no exception with the following error: 'Aborted' (no more details). String path = + Environment.GetEnvironmentVariable("Path", EnvironmentVariableTarget.Machine) Įnvironment.SetEnvironmentVariable("Path", path, EnvironmentVariableTarget.Process)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |