Re: [Tutor] Question on classes/instances

2005-08-10 Thread mailing list
Erk, I of course meant - path = os.path.join('categories', self.name) On 8/10/05, mailing list <[EMAIL PROTECTED]> wrote: > Hi Negroup, > > First off, you may want to use os.path.join to create paths - > > path = 'categories/%s' % self.name > > could be - > > path = os.path.join(categories,

Re: [Tutor] Question on classes/instances

2005-08-10 Thread mailing list
Hi Negroup, First off, you may want to use os.path.join to create paths - path = 'categories/%s' % self.name could be - path = os.path.join(categories, self.name) This will ensure minimum hassle if you ever want to use this across multiple OS. Also, it looks a little tidier, and IMAO, tidie