Message8399
site-packages inside a jar does not get imported by jython.
workaround:
import site
from org.python.util import jython
jar_location = jython().getClass().getProtectionDomain().getCodeSource().getLocation().getPath()
import site
import os.path
site.addsitedir(os.path.join(jar_location, 'Lib/site-packages')) |
|
Date |
User |
Action |
Args |
2014-05-13 22:09:47 | nonameentername | set | recipients:
+ nonameentername |
2014-05-13 22:09:47 | nonameentername | set | messageid: <1400018987.92.0.0438007559062.issue2143@psf.upfronthosting.co.za> |
2014-05-13 22:09:47 | nonameentername | link | issue2143 messages |
2014-05-13 22:09:47 | nonameentername | create | |
|