From: <jr...@us...> - 2010-04-14 18:48:42
|
Revision: 8228 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8228&view=rev Author: jrevans Date: 2010-04-14 18:48:36 +0000 (Wed, 14 Apr 2010) Log Message: ----------- Added the ps temp file ipermissions copy fix (as discussed on the devel list). Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/backends/backend_ps.py Modified: trunk/matplotlib/lib/matplotlib/backends/backend_ps.py =================================================================== --- trunk/matplotlib/lib/matplotlib/backends/backend_ps.py 2010-04-13 22:55:23 UTC (rev 8227) +++ trunk/matplotlib/lib/matplotlib/backends/backend_ps.py 2010-04-14 18:48:36 UTC (rev 8228) @@ -1156,7 +1156,11 @@ fh = file(tmpfile) print >>outfile, fh.read() else: + f = open(outfile, 'w') + mode = os.stat(outfile).st_mode + f.close() shutil.move(tmpfile, outfile) + os.chmod(outfile, mode) def _print_figure_tex(self, outfile, format, dpi, facecolor, edgecolor, orientation, isLandscape, papertype, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |