Shouldn't that be os.path.abspath(os.path.dirname(__file__)) instead  
just in case the .py file is executed with a relative path?

And Bobby, I would instead use the Sites framework to compute the URL  
of the site, not rely on a local folder name.

Erik

On 23.09.2008, at 0:51, Plamen Dragozov wrote:

>
> From inside a python module:
> os.path.dirname(__file__)
>
> Best,
> Plamen Dragozov
>
> Bobby Roberts wrote:
>>
>> On Sep 22, 5:05 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
>>
>>> os.path.dirname()
>>>
>>
>>
>> Thanks.  The main problem is that i have to dynamically get the url
>> i'm at so i can pass to that function ( Python returns that i'm
>> missing 1 argument and I don't know how to dynamically pass that in.)
>>>
>>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to