Skip to content

Conversation

cmacdonald
Copy link
Contributor

I have a usecase where I wish to know the JDK version before starting Jnius.
For instance, JDK24+ will need certain options to suppress warnings about native things.

I thought it would be handy to get the JDK location from jnius, but before jnius starts the JVM.

This PR moves env.py into jnius_config, so its accessible before jnius starts.

If thought necessary for backwards compatibility, I can make a jnius/env.py that has deprecates imports from jnius_config/env.py?

@misl6
Copy link
Member

misl6 commented Sep 8, 2025

Yeah, better to keep backward compatibility 😀

@cmacdonald
Copy link
Contributor Author

Added the shim; adding a deprecated decoration would require adding deprecated as a dependency, and jnius currently has no dependencies (except the JDK of course).

Copy link
Member

@misl6 misl6 left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you!

@misl6 misl6 merged commit ffc654a into kivy:master Sep 9, 2025
71 checks passed
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.

2 participants