Skip to content

Commit 833bc02

Browse files
committed
move import
1 parent 02e275b commit 833bc02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scyjava/_jvm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import jpype.config
1717
from jgo import jgo
1818

19-
from scyjava._cjdk_fetch import ensure_jvm_available
2019
import scyjava.config
2120
from scyjava.config import Mode, mode
2221

@@ -143,6 +142,8 @@ def start_jvm(options=None, *, fetch_java: bool | None = None) -> None:
143142
_logger.debug("Adding jars from endpoints {0}".format(endpoints))
144143

145144
if fetch_java is not False:
145+
from scyjava._cjdk_fetch import ensure_jvm_available
146+
146147
ensure_jvm_available(raise_on_error=fetch_java is True)
147148

148149
# get endpoints and add to JPype class path

0 commit comments

Comments
 (0)