Import error with maven
Piotr Petunov <[email protected]>
| Newsgroups | gmane.comp.lang.jython.user |
|---|---|
| Message-ID | <CAKU9GcAG3wayELNDbYvkNWjifd8L0suH2c5qTWeJGOe_UUT_kw@mail.gmail.com> |
Hello, I'm trying to use Jython as a Java adapter for a Python library. I have built a basic maven project for this purpose. It has java files in the /src/main/java/ folder and python files in the /src/main/resources/Lib folder. Java side works ok, but I can't get it to detect Lib folder, importing custom modules from Java classes causes import error. Python.home isn't defined at all. The version of Jython I used was 2.7-b4. This jar is supposed to work on different setups with different operating systems, therefore I can't use full path for python.home. Is it supposed to work without setting python.home? If not, can I use relative paths? Do you have any recommendations as to what should the relative path be for a jar where python scripts are stored in the Lib folder in the root folder of a jar? Thanks in advance. Regards, Piotr Petunov ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Jython-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jython-users