cwconfig.py
branch3.0
changeset 436 0e4fb0a257ab
parent 378 c0cd7398edff
child 819 7fd66f389ef7
child 1015 b5fdad9208f8
--- a/cwconfig.py	Thu Jan 15 15:59:35 2009 +0100
+++ b/cwconfig.py	Thu Jan 15 17:35:01 2009 +0100
@@ -148,6 +148,8 @@
     if os.environ.get('APYCOT_ROOT'):
         mode = 'test'
         CUBES_DIR = '%(APYCOT_ROOT)s/local/share/cubicweb/cubes/' % os.environ
+        # create __init__ file
+        file(join(CUBES_DIR, '__init__.py'), 'w').close()
     elif exists(join(CW_SOFTWARE_ROOT, '.hg')):
         mode = 'dev'
         CUBES_DIR = join(CW_SOFTWARE_ROOT, '../cubes')