On 4/22/05, Roman Neuhauser <[EMAIL PROTECTED]> wrote:
> > import os
> > a = 'books'
> > os.chdir( '/test')
> > os.mkdir("/test/"a)
> >
> > the last line does not seem to work.  os.mkdir(a) makes the directory
> > books, but i want this directory as a subdirectory of test.
>     http://docs.python.org/ref/string-catenation.html

For this job, os.path.join() might be better. See
<http://docs.python.org/lib/module-os.path.html>.

-- 
Cheers,
Simon B,
[EMAIL PROTECTED],
http://www.brunningonline.net/simon/blog/
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to