~osomon/moovida/plugin_dependencies_graph

« back to all changes in this revision

Viewing changes to build_all_plugins.py

  • Committer: Olivier Tilloy
  • Date: 2009-09-30 10:45:35 UTC
  • mfrom: (1074.1.464 moovida)
  • Revision ID: olivier@fluendo.com-20090930104535-0szf1k61gabhqoa8
Merged the latest Moovida.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
    elif distutils_command_name == 'build_po':
82
82
        for dist in to_build:
83
83
            plugin_name = dist.project_name[13:].replace('-', '_')
84
 
            i18n_path = os.path.join("elisa-plugins", "elisa", "plugins", plugin_name,
85
 
                                     "i18n", "*", "*")
86
 
            po_files = glob.glob(os.path.join(i18n_path, "*.po"))
87
 
            mo_files = glob.glob(os.path.join(i18n_path, "*.mo"))
 
84
            plugin_path = os.path.join('elisa-plugins', 'elisa', 'plugins', plugin_name)
 
85
            i18n_path = os.path.join(plugin_path, 'i18n')
 
86
            po_files = glob.glob(os.path.join(i18n_path, '*.po'))
 
87
            mo_files = glob.glob(os.path.join(i18n_path, '*', 'LC_MESSAGES', '*.mo'))
88
88
 
89
89
            if not len(po_files) == len(mo_files):
90
90
                raise AssertionError, ".mo files not compiled for %r" % plugin_name
103
103
                      action="store_true", dest="test_build_result", default=False,
104
104
                      help="check the files produced exist")
105
105
 
106
 
    (options, args) = parser.parse_args()
 
106
    (options, args) = parser.parse_args(args=args)
107
107
 
108
108
    if options.list_plugins:
109
109
        list_all(True)