PNG file corrupted by ASCII conversion

Hi to everybody :slight_smile: i’m trying to create a p3d file that can create/read/write an external png file.
I’m using pychart libs and if i run my program from Eclipse it works, but if i run the p3d file using self.CurrentDirectory=appRunner.p3dFilename.getDirname() to set current directory it doesn’t work.
i got this error:
:gobj: Loading texture /home/marco/workspace/MapOcularDeviations/left.png
:pnmimage:png(error): PNG file corrupted by ASCII conversion
:gobj(error): Texture::read() - couldn’t read: /home/marco/workspace/MapOcularDeviations/left.png
:gobj(error): Texture “/home/marco/workspace/MapOcularDeviations/left.png” exists but cannot be read.

The png file is in the same directory of the p3d file.
thanks in advice for any help :slight_smile: