apycot fix 3.0
authorsylvain.thenault@logilab.fr
Thu, 15 Jan 2009 17:35:01 +0100
branch3.0
changeset 436 0e4fb0a257ab
parent 435 7c19ba5bfbbb
child 437 5d8dc9678707
child 454 c35c318e6be5
apycot fix
cwconfig.py
--- 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')