On 7/9/07, voltron <[EMAIL PROTECTED]> wrote:
>
> I noticed this in enviroment.py:
>
> root_path =
> os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
>
> paths = {'root_path': root_path,
> 'controllers': os.path.join(root_path, 'controllers'),
> 'templates': [os.path.join(root_path, path) for path in \
> ('components', 'templates')],
> 'static_files': os.path.join(root_path, 'public')
> }
>
> maybe there should be a "user_static" key of some sort in the paths
> dict. I´m not sure if it would work reliably on windows since
> os.path.join removes the drive letters on windows
I changed it from 'public' to 'static' and that worked fine. You can
define your own config var with the absolute path of your static
files. I don't think the use case is common enough to warrant a
standard option for it, though a comment in the source that you can do
this wouldn't hurt.
--
Mike Orr <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---