I am having trouble importing Python modules into Jython embedded into a Java application. If I try this:

import mymodule

An exception of type TypeError is thrown with a message of NoneType is unscriptable.  I have tried added the path to mymodule via

sys.path.append('path\to\mymodule')

This works and then I can

print sys.path

And everything is showing up fine but I still get the NoneType exception.

If I do this from the command line it works.

Is there something I am doing wrong or is this not supported?