author Julien Cristau <julien.cristau@logilab.fr>
Thu, 19 Jun 2014 10:16:50 +0200
changeset 1534 b22c01912961
parent 1515 2a12802efe66
permissions -rw-r--r--
[debian] change source package name to match pkginfo's distname Otherwise we fail to use the sdist-generated tarball and get a native debian package. Closes #4016396

# make it work in 'dev' mode: look for preprocessors in known cubes

    import narvalbot
    from cubes.narval import narvalbot
    import sys
    sys.modules['narvalbot'] = narvalbot

if narvalbot.MODE == 'dev':
    # we are running from sources, cubicweb *should* be available,
    # let's use it as starting point to look for cubes in which there
    # is a _narval directory
    import os, os.path as osp
    from cubicweb import CW_SOFTWARE_ROOT
    cubesdir = osp.join(CW_SOFTWARE_ROOT, '..', 'cubes')
    for cube in os.listdir(cubesdir):
        pluginsdir = osp.abspath(osp.join(cubesdir, cube, '_narval', 'preprocessors'))
        if osp.isdir(pluginsdir):