Well. there is some function in Setuptools to locate an egg. So if
you'r installing your project as an egg this would work
import pkg_resources
egg = pkg_resources.get_distribution("Fine-Project")
egg.location
On 1/19/06, Mike Sarahan <[EMAIL PROTECTED]> wrote:
>
> Hi guys,
>
> I'm working on making my project more portable, and I've got a couple
> of scripts that do the mundane tasks of resizing images and generating
> random lists to save time when a user asks for one.
>
> Is there an easy way to ask turbogears or cherrypy what is the root
> folder of a project?
>
> I tried to use python's os.path.getcwd(), but that doesn't necessarily
> always work, especially with cron jobs.
>
> Thanks,
> -Mike
>
>
--
cheers
elvelind grandin