15 Mar 20:49
Loading standard python modules from the classpath
Tom Nichols <tmnichols <at> gmail.com>
2010-03-15 19:49:33 GMT
2010-03-15 19:49:33 GMT
So in working on my python web console, I've only just realized that all of the standard CPython modules that Jython supports actually exist as .py files that are loaded at runtime. This presents a potentially serious problem for me: AppEngine doesn't allow direct file access at runtime! I suspect the internals of Jython's import mechanism is looking for a .py file on the system path, which won't work at all in the Java AppEngine runtime. Now, if there's a way for those imports to be read from the classpath instead of the filesystem, then I'll be all set. If not, the project is somewhat hosed, as the inability to use virutally _any_ of the standard cpython libraries presents a considerable limitation to the project. Can Jython modules be loaded from the classpath?? Any suggestions from the wise Jython project maintainers? Thanks. -Tom ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
RSS Feed