devtools/devctl.py
changeset 1015 b5fdad9208f8
parent 396 76d593bd4221
child 1105 4370edac331e
equal deleted inserted replaced
1004:625e59773119 1015:b5fdad9208f8
   284     
   284     
   285     def run(self, args):
   285     def run(self, args):
   286         """run the command with its specific arguments"""
   286         """run the command with its specific arguments"""
   287         CUBEDIR = DevCubeConfiguration.cubes_dir()
   287         CUBEDIR = DevCubeConfiguration.cubes_dir()
   288         if args:
   288         if args:
   289             cubes = [join(CUBEDIR, app) for app in args]
   289             cubes = [DevCubeConfiguration.cube_dir(cube) for cube in args]
   290         else:
   290         else:
   291             cubes = [join(CUBEDIR, app) for app in listdir(CUBEDIR)
   291             cubes = [DevCubeConfiguration.cube_dir(cube) for cube in DevCubeConfiguration.available_cubes()]
   292                          if exists(join(CUBEDIR, app, 'i18n'))]
   292             cubes = [cubepath for cubepath in cubes if exists(join(cubepath, 'i18n'))]
   293         update_cubes_catalogs(cubes)
   293         update_cubes_catalogs(cubes)
   294 
   294 
   295 def update_cubes_catalogs(cubes):
   295 def update_cubes_catalogs(cubes):
   296     import shutil
   296     import shutil
   297     from tempfile import mktemp
   297     from tempfile import mktemp