From 57e540c6fc66ad5240912f7e48d485420e1d0a12 Mon Sep 17 00:00:00 2001 From: Fabien Morin <fabien@nexedi.com> Date: Fri, 1 Feb 2008 12:07:06 +0000 Subject: [PATCH] add a line to delete temporary files after use (this pb eat all my computer disk space !) git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18975 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/ScribusUtils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/product/ERP5Form/ScribusUtils.py b/product/ERP5Form/ScribusUtils.py index 779f868690..be514f389d 100644 --- a/product/ERP5Form/ScribusUtils.py +++ b/product/ERP5Form/ScribusUtils.py @@ -690,6 +690,11 @@ class ManageFiles: original_result= commands.getstatusoutput('identify %s' % \ (ScribusUtilsOriginaltempsPPMName + '*')) + # this line permit to delete tempory files (about 24 Mo for each file !) + # it's temporary because this function mus be rewrited or deleted + # (perhaps setBackgroundPictures could return attributes list) + ScribusUtilsOriginaltempsPPMName.close() + pg_nbr = len(original_result[1].split('\n')) real_size_x = {} real_size_y = {} -- 2.30.9