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.

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,
-- 
Daniele

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to