Message5638
I can confirm this as well on the release version of Jython 2.5.1. I tested it on both Ubuntu 8.04 and Mac OS X Snow Leopard. The results were the same. After searching around on Google for similar problems, I found some workarounds. However, none of them worked. After delving into the Jython source code, I found sort of a ghetto workaround.
By calling PySystemState.add_extdir(String), you can put jars into Jython at runtime, and import statements should work as per the norm. Of course, the trick is getting the directory with your jars into your program. In my case I wound up passing an environment variable. You could conceivably also pass Java a -Dproperty, or hard code it. |
|
Date |
User |
Action |
Args |
2010-04-05 22:40:28 | projectmoon | set | messageid: <1270507228.98.0.509465693408.issue1422@psf.upfronthosting.co.za> |
2010-04-05 22:40:28 | projectmoon | set | recipients:
+ projectmoon, fwierzbicki, gschenke |
2010-04-05 22:40:28 | projectmoon | link | issue1422 messages |
2010-04-05 22:40:27 | projectmoon | create | |
|