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

Refactor of env.py #541

Closed
wants to merge 9 commits into from
5 changes: 3 additions & 2 deletions jnius/__init__.py
Expand Up @@ -9,13 +9,14 @@

__version__ = '1.3.0'

from .env import get_jnius_lib_location, get_jdk_home
from .env import get_java_setup

import os
import sys
if sys.platform == 'win32' and sys.version_info >= (3, 8):
path = os.path.dirname(__file__)
jdk_home = get_jdk_home(sys.platform)
java = get_java_setup(sys.platform)
jdk_home = java.get_javahome()
with os.add_dll_directory(path):
for suffix in (
('bin', 'client'),
Expand Down