Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setting up python home and environment variable checking #55

Closed
wants to merge 74 commits into from
Closed

Add setting up python home and environment variable checking #55

wants to merge 74 commits into from

Conversation

bmello4688
Copy link

@bmello4688 bmello4688 commented Jun 24, 2021

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.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Add yourself to AUTHORS
  • Updated the CHANGELOG

C-SELLERS and others added 27 commits March 12, 2021 14:45
Improve property access performance
- Converter with handle sending a python List to a method expecting a
  csharp enumerable. Adding unit test
…d-resolution

Bug enumerable list method resolution
- Updating all projects to target net.50
- Remove domain test since it's not supported in net5.0
…s do not need to be created. Comes in handy when having multiple python versions
Copy link
Member

@Martin-Molinero Martin-Molinero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!
Similar to https://github.com/pythonnet/pythonnet/pull/1411/files which we haven't cherry-picked yet. Next release we can look into this 💯 and ship it, but would prefer to follow the behavior at root pythonnet/pythonnet to avoid unnecessary deviations though, rebase is already complex enough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants