os.path.dirname()

Wiadomość napisana w dniu 2008-09-22, o godz. 22:51, przez Bobby  
Roberts:

>
> i've got a setup like most people where i have directory structure
> such as:
>
> home/sites/xxx/whatever
>
>
> where xxx is the domain name
>
> If I have a file sitting in the "whatever" directory, how can i find
> the domain name under which the file resides?
>
>
>
> Thanks for helping a noob.
> >

-- 
We read Knuth so you don't have to. - Tim Peters

Jarek Zgoda, R&D, Redefine
[EMAIL PROTECTED]


--~--~---------~--~----~------------~-------~--~----~
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