filename variables

cyborg4 at walla.co.il cyborg4 at walla.co.il
Thu Mar 2 15:45:25 CET 2006


If in  Windows XP I use:

openstring= "test.py  >foo.txt"
os.system(openstring)

it works.


But if I use:

file1='foo.txt'
openstring= "test.py  >"+file1

It gives an IOError about no such file or directory as
\\mydidr\\foo.txt

What does it mean ?




More information about the Python-list mailing list