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:
@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)