ya2 · news · projects · code · about

housekeeping (setup.py)
[pmachines.git] / ya2 / build / lang.py
index cc8a5828eb04ed06788aa4e91772bc5b2bdb88a1..ae95b535faa1b91e19bc540438928a34242b73ec 100644 (file)
@@ -2,7 +2,7 @@
 from os import system, makedirs, remove
 from os.path import exists
 from shutil import move, copy
-from ya2.build.build import files
+from ya2.build.build import find_file_names, FindFileNamesInfo
 
 
 class LanguageBuilder:
@@ -19,7 +19,8 @@ class LanguageBuilder:
     @staticmethod
     def build_pot(appname, pot_path):
         '''Builds the pot file in the lng_dir_code directory.'''
-        src_files = ' '.join(files(['py']))
+        find_info = FindFileNamesInfo(['py'])
+        src_files = ' '.join(find_file_names(find_info))
         cmd_tmpl = 'xgettext -ci18n -d {appname} -L python ' + \
             '-o {pot_path}{appname}.pot '
         system(cmd_tmpl.format(appname=appname, pot_path=pot_path) + src_files)