QuantConnect / pythonnet

Python for .NET is a package that gives Python programmers nearly seamless integration with the .NET Common Language Runtime (CLR) and provides a powerful application scripting tool for .NET developers.
http://pythonnet.github.io
MIT License
28 stars 27 forks source link

Add setting up python home and environment variable checking #55

Closed bmello4688 closed 2 years ago

bmello4688 commented 3 years ago

What does this implement/fix? Explain your changes.

Checks to make sure the required environment variable is set. (PYTHONNET_PYDLL). It then takes the directory path and sets that on the PythonHome property of the engine. This allows the embedded python instance to use the specified path versus trying to find it through the OS environment.

Does this close any currently open issues?

54

Any other comments?

At a minimum it will make initialization less likely to fail

Checklist

Check all those that are applicable and complete.