Re: Nested os.path.join()'s

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul Scott

    Re: Nested os.path.join()'s


    On Mon, 2008-05-05 at 10:34 -0400, Jean-Paul Calderone wrote:
    How about not nesting the calls?
    >
    >>from os.path import join
    >>join(join('x' , 'y'), 'z') == join('x', 'y', 'z')
    True
    >>>
    >
    Great! Thanks. Didn't realise that you could do that... :)

    --Paul


    All Email originating from UWC is covered by disclaimer
    The University of the Western Cape is a national university, alert to its African and international context as it strives to be a place of quality, a place to grow. It is committed to excellence in teaching, learning and research, to nurturing the cultural diversity of South Africa, and to respon...


Working...