On Fri, 18 Feb 2005 08:56:54 -0800, jacob martinson wrote:
>�Is it possible to setup WebKit to run servlets from compiled code (*
>�.pyc) rather than source files?
>
>�Using python from the command line on compiled files works, like:
>
>�python someapp.pyc
>
>�and also:
>
>�$ python
>>>>�import someapp
>>>>
>
>�I tried adding '.pyc' to 'FilesToServe' in Application.config, and
>�also removing it from 'FilesToIgnore', but that just sends the .pyc
>�file directly to the browser.
>
>�Thanks!
>
>�-Jacob
In WebKit/ServletFactory.py you'll see this in the PythonServletFactory:
def extensions(self):
return ['.py']
Try adding '.pyc' in there as well and let us know how it goes. Unless I'm
missing something, this should work fine and can go in Webware.
-Chuck
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Webware-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/webware-discuss