[Erp5-report] r24666 - /erp5/trunk/products/ERP5Type/Utils.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Nov 21 18:44:06 CET 2008
Author: jerome
Date: Fri Nov 21 18:44:05 2008
New Revision: 24666
URL: http://svn.erp5.org?rev=24666&view=rev
Log:
in addition to r24664, also try to create $INSTANCE_HOME/tests and
$INSTANCE_HOME/Document if they are not already present
Modified:
erp5/trunk/products/ERP5Type/Utils.py
Modified: erp5/trunk/products/ERP5Type/Utils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Utils.py?rev=24666&r1=24665&r2=24666&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Utils.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Utils.py [utf8] Fri Nov 21 18:44:05 2008
@@ -627,6 +627,9 @@
if instance_home is None:
instance_home = getConfiguration().instancehome
path = os.path.join(instance_home, "tests")
+ if not os.path.exists(path):
+ os.mkdir(path)
+ LOG('ERP5Type', WARNING, 'Created missing but required directory: %s' %path)
path = os.path.join(path, "%s.py" % class_id)
if create:
if os.path.exists(path):
@@ -696,6 +699,9 @@
if instance_home is None:
instance_home = getConfiguration().instancehome
path = os.path.join(instance_home, "Document")
+ if not os.path.exists(path):
+ os.mkdir(path)
+ LOG('ERP5Type', WARNING, 'Created missing but required directory: %s' %path)
path = os.path.join(path, "%s.py" % class_id)
if create:
if os.path.exists(path):
More information about the Erp5-report
mailing list