Loading Adafruit_DHT from Jython
<p>I'm having trouble importing a library called Adafruit_DHT while using the Jython interpreter. Here is what I'm doing:</p>

<ul>
<li>Downloaded the Adafruit_DHT Library, put in on my Raspberry Pi 2, installed it with "sudo python setup.py install". When scrips using this library are executed through the normal interpreter, everything's fine.</li>
<li>Run my java program, which starts a Jython interpreter</li>
<li>First error: Adafruit_DHT module isn't found when using "import Adafruit_DHT"</li>
<li>Solved by adding a lot of paths to sys.path</li>
<li>Next error: "Exception ... File "/usr/local/lib/python2.7/dist-packages/Adafruit_DHT-1.1.0-py2.7-linux-armv7l.egg/Adafrut_DHT/common.py", line 59, in get_platform
RuntimeError: Unknown platform." Don't really get it. Apparently the library doesnt work properly when called through Jython.</li>
<li>Solved by nearly deleting all of "get_platform" function in common.py and replacing it by hardcoding Raspberry_Pi_2 as the used platform.</li>
<li>Next problem: "File "/usr/local/lib/python2.7/dist-packages/Adafruit_DHT-1.1.0-py2.7-linux-armv7l.egg/Adafrut_DHT/Raspberry_Pi_2_Driver.py", line 6, in bootstrap
ImportError: No module named Adafruit_DHT.Raspberry_Pi_2_Driver": Apparently the library itself makes use of modules. And those can't be loaded through Jython</li>
</ul>

<p>I simply don't get what I should do to properly load and use an installed, rather complex, module like Adafruit_DHT through Jython. I mean, it works fine through the normal python interpreter, so there is no real reason why it shouldn't work through Jython.</p>