Brett,

Yes, I'm aware that pyc files can be decompiled -- but this does at least
strip comments from the code, slightly speed up loading, and a few other
minor things.

I guess the simplest workaround would be to create a 1-line file
"csc_manager.wsgi" as follows?

from csc_manager_wsgi import application

On Mon, Dec 1, 2008 at 3:24 PM, Brett Hoerner <[EMAIL PROTECTED]>wrote:

>
> 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
>
> >
>


-- 
Matt Craighead
Founder/CEO, Conifer Systems LLC
http://www.conifersystems.com
512-772-1834

--~--~---------~--~----~------------~-------~--~----~
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