Message8399

Author nonameentername
Recipients nonameentername
Date 2014-05-13.22:09:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1400018987.92.0.0438007559062.issue2143@psf.upfronthosting.co.za>
In-reply-to
Content
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'))
History
Date User Action Args
2014-05-13 22:09:47nonameenternamesetrecipients: + nonameentername
2014-05-13 22:09:47nonameenternamesetmessageid: <1400018987.92.0.0438007559062.issue2143@psf.upfronthosting.co.za>
2014-05-13 22:09:47nonameenternamelinkissue2143 messages
2014-05-13 22:09:47nonameenternamecreate