jython: user-defined modules
Diez B. Roggisch
deets at nospam.web.de
Wed Apr 25 08:58:42 EDT 2007
Gregor Stich wrote:
> Dear all,
>
> I hope my question is here in the right place...
> What I want to achieve is a communication between Java and Python. We
> have a pretty strong framework of existing python scripts and modules.
> Now I want to use jython in order to faciliate the communication
> between another Java framework.
>
> But I`m currently stuck with jython: Trying to import the user-defined
> python modules, these cannot be found. I read a lot about the jython
> registry and I setup a $HOME/.jython file where I created a
> python.path=... resource, however, when I start the jython command
> line and type
> print python.path
> then this property is not found. Passing it with the -D option does
> not work as well, or maybe I`m too confused to make it work anyway?
First of all, you should subscribe to the jython mailing list.
Second, you access the python.path inside jython via
import sys
print sys.path
HTH,
Diez
More information about the Python-list
mailing list