[Grok-dev] Re: Relative filesystem path?
Jim Washington
jwashin at vt.edu
Sun Sep 16 16:18:34 EDT 2007
Philipp von Weitershausen wrote:
>
> The docs to the 'os' package would have taught you right away. I'm
> surprised where you caught that esoteric os.curdir trick :).
>>
It's easy to get "esoteric" results when you dir(library) and try things
until you get something like what you want. :) Why would you do that?
It's faster (and more fun) than looking up the docs.
>>
>> __file__ would just get me to the files in my library package. I want
>> to put the html templates out where the web application is, not inside
>> the library egg.
>
> Yup, I understand. Here's what you can do:
>
> [...code snipped...]
Very clever! I do not think I would have found that.
Thanks, Philipp
-Jim Washington
More information about the Grok-dev
mailing list