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

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Sep 5 13:09:29 CEST 2007


Author: jerome
Date: Wed Sep  5 13:09:29 2007
New Revision: 16067

URL: http://svn.erp5.org?rev=16067&view=rev
Log:
display the complete path for the tmp directory when raising an error because it's not writable

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=16067&r1=16066&r2=16067&view=diff
==============================================================================
--- erp5/trunk/utils/oood/runserw.py (original)
+++ erp5/trunk/utils/oood/runserw.py Wed Sep  5 13:09:29 2007
@@ -268,8 +268,9 @@
     #########################################################
     import config
     # check if we have tmp dir and it is writeable
-    if not os.access(os.path.join(config.oood_home, 'tmp'+offset_str), os.W_OK):
-      message = 'ERROR: A tmp%s subdirectory must exist and must be writeable!!!' % offset_str
+    tmp_dir = os.path.join(config.oood_home, 'tmp'+offset_str)
+    if not os.access(tmp_dir, os.W_OK):
+      message = 'ERROR: %s must exist and must be writeable' % tmp_dir
       Log.info(message)
       print message
       sys.exit(1)




More information about the Erp5-report mailing list