I want to integrate the tesseractTrainer.py in my java application
 tesseract-ocr.googlecode.com/files/tesseractTrainer.py

the python script has the following imports
/**********************/-
import pygtk
pygtk.require('2.0')
import gtk
import os
import pango
import sys
/******************/
i changed the following imports as follows as described in the post

http://www.nabble.com/PythonInterpreter-classpath-td22758736.html

/**************/
import os
import sys
sys.add_package('pango')
import pango
sys.add_package('pygtk')
import pygtk
sys.add_package('gtk')
import gtk

/*************/
From Java Code:


PySystemState sys = new PySystemState();
            sys.setClassLoader(getClass().getClassLoader());
            PythonInterpreter interp = new PythonInterpreter(null, sys);
          System.setProperty("python.verbose", "debug");
         
          interp.execfile("/home/ima/Desktop/Test/tesseractTrainer.py");
         

The Java Program runs without error but doesnt run the python script tesseractTrainer.py

Can any one suggest any solution for this...

Thank you