cwconfig.py
branch3.1
changeset 2027 85eae6a79f75
parent 436 0e4fb0a257ab
child 819 7fd66f389ef7
child 1015 b5fdad9208f8
--- a/cwconfig.py	Thu Jan 15 10:13:25 2009 +0100
+++ b/cwconfig.py	Wed Jun 03 19:42:23 2009 +0200
@@ -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')