30 Jul
2005
30 Jul
'05
9:52 p.m.
On Saturday 30 July 2005 22:17, Ted Gould wrote:
Unfortunately this seems to be a problem with the function that makes temporary files. It requires that the random characters be on the end of the description, so it can't be "ink_tempRANDOM.svg" it has to be "ink_tempRANDOM". If we just tacked ".svg" on the end we wouldn't be guaranteed that the file isn't there already.
Python's tempfile¹ library has functions like mktemp which let you specify the extension you want for the file. Perhaps the algorithm could be borrowed, if none of the standard c/c++ libs provide a similar call.
¹ http://www.python.org/doc/2.0.1/lib/module-tempfile.html
--
Lee Braiden
http://www.DigitalUnleashed.com