author Julien Cristau <julien.cristau@logilab.fr>
Mon, 07 Jul 2014 18:48:43 +0200
changeset 1541 a48ad903f660
parent 1515 2a12802efe66
permissions -rw-r--r--
[narval] remove broken test_print_log method lgp says "a build log is available at $path" before that's true (it only copies it there afterwards), so we always said "$path not found".

# make it work in 'dev' mode: look for checkers 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', 'checkers'))
        if osp.isdir(pluginsdir):