[Erp5-report] r40821 nicolas.dumazet - /erp5/trunk/products/ERP5Type/Utils.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Nov 29 03:19:47 CET 2010
Author: nicolas.dumazet
Date: Mon Nov 29 03:19:46 2010
New Revision: 40821
URL: http://svn.erp5.org?rev=40821&view=rev
Log:
create Extensions directory in instance home when it doesnt exist
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=40821&r1=40820&r2=40821&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Utils.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Utils.py [utf8] Mon Nov 29 03:19:46 2010
@@ -734,6 +734,9 @@ def writeLocalExtension(class_id, text,
if instance_home is None:
instance_home = getConfiguration().instancehome
path = os.path.join(instance_home, "Extensions")
+ 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