Comment 17 for bug 386664

Revision history for this message
jazzynico (jazzynico) wrote :

I think the empty zip file is due to the fact that it is first created in a temporary directory, and then copied to the final location using sys.stdout:

        out = open(self.zip_file,'r')
        sys.stdout.write(out.read())
        out.close()

The temporary zipped file works well, but after opening it and writing it to stdout, it fails on Windows XP.

Attached is the latest file version, not tested on Linux (I'll try later today) and Mac.
Recent changes are: double .svg suffix fix, latin_1 replaced by utf-8, and temporary directory not removed (for testing purpose).