Using this code:
self.pdf = PdfPages('%s.%s.pdf' % (name, str(date.today())))
Trying to output a pdf with the name
"results.abs_aci=[10.0, nan, 10.0].rate=['2/3', '4/5', '2/3'].2012-03-12.pdf"
produces this error
IOError: [Errno 2] No such file or directory: "results.abs_aci=[10.0, nan,
10.0].rate=['2/3', '4/5', '2/3'].2012-03-12.pdf"
Changing the file name to just 'test1.pdf' produces no error.
On Unix platforms the / character is invalid in file names, being the
path separator, along with the \0 character, for obvious reasons.
On Windows the allowed set of valid characters is further reduced,
depending on the filesystem.
Cheers,
ยทยทยท
On 12/03/12 13:40, Neal Becker wrote:
Using this code:
self.pdf = PdfPages('%s.%s.pdf' % (name, str(date.today())))
Trying to output a pdf with the name
"results.abs_aci=[10.0, nan, 10.0].rate=['2/3', '4/5', '2/3'].2012-03-12.pdf"
produces this error
IOError: [Errno 2] No such file or directory: "results.abs_aci=[10.0, nan,
10.0].rate=['2/3', '4/5', '2/3'].2012-03-12.pdf"
Changing the file name to just 'test1.pdf' produces no error.
--
Daniele