};
private static synchronized void ensurePythonInit() {
+ if (!Activator.isPythonLoaded()) {
+ throw new PythonException("Python interpreter has not been successfully loaded. Check availablility of python3.dll in path.");
+ }
+
if (!isPyInitialized) {
execute(() -> initializePython(pythonWriter));
isPyInitialized = true;