Sunday, December 5, 2010

How to find what is the current module directory?

I'm looking for something analagous to the existing command:

sfConfig::get("sf_app_config_dir")

which gives me access to the config directory of the current application
("apps/frontend/config"). I would like to do the same to access the config
directory of the module, e.g. "apps/frontend/modules/homepage/config".
Ideally, it would seem logical that there should be a command such as:

sfConfig::get("sf_module_config_dir")

although I am not too bothered about the final "/config" directory, I just
want an easy way to find "/apps/frontend/modules/homepage/".

Can anybody help?

--
Simon Tite

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate