File Creation Not Working In A Thread Class?

bc90021 python at bc90021.net
Sun May 11 16:12:38 EDT 2008


On Sun, 11 May 2008 19:55:31 +0000, Duncan Booth wrote:

> 7stud <bbxx789_05ss at yahoo.com> wrote:
> 
> 
>>                             tempfileName = "\"proctemp\\"
>>                             +
>> self.matrix[c][0] + "_other.txt\""
> 
> It wouldn't exactly result in either of the error messages you posted,
> but I expect the spurious quote marks round the filename will be giving
> you problems.
> 
> Surely you want the filename to be something like
> 'proctemp\fred_other.txt' rather than '"proctemp\fred_other.txt"' with
> the spurious double quotes?

Yup, that's what it was.  I figured it out two seconds before this post.  
However, it will be interesting to see how it handles files with spaces 
in the name...

Thanks for your help!




More information about the Python-list mailing list