From: Branko Strok <drbranko@ho...> - 2002-02-16 22:18:06
I just recently discovered jython and it seems like dream come true!
But I got stuck at the very beginning! Could anyone please help me with
this, I can send send code examples if necessary:
Q1: I have a python application that I got from the web (I don't understand
much of the python code). It is comprised of many .py files which all reside
in one directory. If I call the main .py script by invoking standard python
windows interpreter in the same command prompt line everything works fine.
But...when I want to call main script from my java code like:
I get all import error messages: cannot import module, name etc.
Is the solution related to the python.home parameter? How do I fix this?
Q2: I have to send parameters to the main python script on invocation. Can I
do that from interp.execfile(myscript.py -param a)? Is there any other way
to do this?
Thanks in advance. Jython is like gift from Gods solution for my
problems...well only if I make it work.
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.