devtools/devctl.py
branchstable
changeset 8257 d54fc706d623
parent 8247 65b0d2587fb5
child 8258 88a7d2c49d39
child 8451 49e965bba1ec
equal deleted inserted replaced
8256:852c73392b00 8257:d54fc706d623
   301         import yams
   301         import yams
   302         from logilab.common.fileutils import ensure_fs_mode
   302         from logilab.common.fileutils import ensure_fs_mode
   303         from logilab.common.shellutils import globfind, find, rm
   303         from logilab.common.shellutils import globfind, find, rm
   304         from logilab.common.modutils import get_module_files
   304         from logilab.common.modutils import get_module_files
   305         from cubicweb.i18n import extract_from_tal, execute
   305         from cubicweb.i18n import extract_from_tal, execute
   306         tempdir = tempfile.mkdtemp()
   306         tempdir = tempfile.mkdtemp(prefix='cw-')
   307         cwi18ndir = WebConfiguration.i18n_lib_dir()
   307         cwi18ndir = WebConfiguration.i18n_lib_dir()
   308         print '-> extract schema messages.'
   308         print '-> extract schema messages.'
   309         schemapot = osp.join(tempdir, 'schema.pot')
   309         schemapot = osp.join(tempdir, 'schema.pot')
   310         potfiles = [schemapot]
   310         potfiles = [schemapot]
   311         potfiles.append(schemapot)
   311         potfiles.append(schemapot)