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.
# [EMAIL PROTECTED] / 2005-04-22 00:13:05 -0700:
> Hello!
>
> I can't seem to get paths and variables working together:
>
> 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 direct
Hello!
I can't seem to get paths and variables working together:
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.
I also tried: os.mkdir("/test/",a), and