On Mon, Dec 1, 2008 at 2:17 PM, Matt Craighead
<[EMAIL PROTECTED]> wrote:
> Works fine if I give it the .py file, but I prefer to ship my software as
> .pyc files rather than .py files.  Is there a way to tell mod_wsgi to load a
> precompiled .pyc script?

The docs say,

"In all ways that the WSGIScriptAlias can be used, the target script
is not required to have any specific extension type and in particular
it is not necessary to use a '.py' extension just because it contains
Python code. Because the target script is not treated exactly like a
traditional Python module, if an extension is used, it is recommended
that '.wsgi' be used rather than '.py'."

Especially note the last sentence.  The wsgi script isn't a normal
Python file, really.  Is there any reason you want it to be a pyc?
(You're aware that pyc files can be easily decompiled - right?)

Brett

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to