Some fixes. Do not use get_files_list to generate the .pot, just enumerate python files.

This commit is contained in:
Marco Pesenti Gritti 2008-05-25 23:02:22 +02:00
parent 96c0b34514
commit 3b1e1aa4ed

View File

@ -142,11 +142,10 @@ class Packager(object):
def get_files(self): def get_files(self):
files = _get_file_list(self.config.manifest) files = _get_file_list(self.config.manifest)
files.extend(_get_l10n_list(self.config)) files.extend(_get_l10n_list(self.config))
return files
class XOPackager(Packager): class XOPackager(Packager):
def package(self): def package(self):
file_list = _get_file_list(self.config.manifest)
zipname = self.config.xo_name zipname = self.config.xo_name
bundle_zip = zipfile.ZipFile(zipname, 'w', zipfile.ZIP_DEFLATED) bundle_zip = zipfile.ZipFile(zipname, 'w', zipfile.ZIP_DEFLATED)
base_dir = self.config.bundle_root_dir base_dir = self.config.bundle_root_dir
@ -237,8 +236,8 @@ def cmd_genpot(config, options, args):
os.mkdir(po_path) os.mkdir(po_path)
python_files = [] python_files = []
file_list = _get_file_list(config.manifest) for root, dirs, files in os.walk(config.source_dir):
for file_name in file_list: for file_name in files:
if file_name.endswith('.py'): if file_name.endswith('.py'):
python_files.append(file_name) python_files.append(file_name)