On Jun 7, 10:18 am, Gerard Flanagan <[EMAIL PROTECTED]> wrote: > On Jun 7, 8:39 am, dmitrey <[EMAIL PROTECTED]> wrote: Thank you. And what is the simplest way (without split/join, if exist) to obtain name of directory parent to directory my_directory_name?
Thx, D. > > > Hi all, > > I guess this question was asked many times before, but I don't know > > keywords for web search. > > > Thank you in advance, D. > > import os > > d1 = os.path.dirname(__file__) > d2 = os.path.dirname(os.__file__) > > print d1 > print d2 -- http://mail.python.org/mailman/listinfo/python-list