WSGIScriptAlias /cascade "C:\Program Files\Conifer Systems\Cascade\csc_manager_wsgi.pyc"<Directory "C:\Program Files\Conifer Systems\Cascade">Order allow,denyAllow from all</Directory>
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
Do you really have many comments or much code in your wsgi script
itself? I guess I can understand the desire for pyc files elsewhere,
but does this one file being "plain source" really hold you back? I
suppose all of my wsgi scripts have been pretty basic.
> I guess the simplest workaround would be to create a 1-line file
> "csc_manager.wsgi" as follows?
>
> from csc_manager_wsgi import application
That'd probably work, certainly worth a try.
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.