How to execute python function in java using jython which has import modules on top of py files -


i trying execute python function in java using jython, using python file has import module, , due execution fails saying

traceback (most recent call last):
file "\users\ibm_admin\desktop\poc\swt\src\com\test\startpcommexecution.py",
line 7, in import const importerror: no module named const

if create simple function no import modules works fine.

is there way how overcome failure of import modules using jython?


Comments

Popular posts from this blog

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -