Skip to content
Snippets Groups Projects
Commit 623e3399 authored by pkupczyk's avatar pkupczyk
Browse files

SP-948 / BIS-543 : In openbis jython scripts import module does not work - improve logging

SVN: 29971
parent 08fc7592
No related branches found
No related tags found
No related merge requests found
......@@ -77,6 +77,11 @@ public class PythonInterpreter extends org.python.util.PythonInterpreter
}
}
}
if (log.isDebugEnabled())
{
log.debug("Python path: " + getSystemState().path);
}
}
public void removeFromPath(String... pathElements)
......@@ -95,6 +100,11 @@ public class PythonInterpreter extends org.python.util.PythonInterpreter
}
}
}
if (log.isDebugEnabled())
{
log.debug("Python path: " + getSystemState().path);
}
}
public void releaseResources()
......@@ -131,11 +141,6 @@ public class PythonInterpreter extends org.python.util.PythonInterpreter
// other files from the same directory does not work.
addToPath(pythonPath);
if (log.isDebugEnabled())
{
log.debug("Python path: " + getSystemState().path);
}
setSystemState();
Py.exec(Py.compile_flags(data, filename, CompileMode.exec, cflags), getLocals(), null);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment