[Erp5-report] r22988 - /erp5/trunk/utils/oood/runserw.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Aug 13 23:34:27 CEST 2008


Author: kazuhiko
Date: Wed Aug 13 23:34:26 2008
New Revision: 22988

URL: http://svn.erp5.org?rev=22988&view=rev
Log:
try to create tmp_dir.

Modified:
    erp5/trunk/utils/oood/runserw.py

Modified: erp5/trunk/utils/oood/runserw.py
URL: http://svn.erp5.org/erp5/trunk/utils/oood/runserw.py?rev=22988&r1=22987&r2=22988&view=diff
==============================================================================
--- erp5/trunk/utils/oood/runserw.py (original)
+++ erp5/trunk/utils/oood/runserw.py Wed Aug 13 23:34:26 2008
@@ -270,6 +270,10 @@
     import config
     # check if we have tmp dir and it is writeable
     tmp_dir = config.tmp_dir+offset_str
+    try:
+      os.makedirs(tmp_dir)
+    except OSError:
+      pass
     if not os.access(tmp_dir, os.W_OK):
       message = 'ERROR: %s must exist and must be writeable' % tmp_dir
       Log.info(message)




More information about the Erp5-report mailing list