diff options
| author | Barry Warsaw | 2009-11-24 20:43:11 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-11-24 20:43:11 -0500 |
| commit | 79d9e36a0b824548a0f2bc83cb948fc5ce668151 (patch) | |
| tree | bad1f9da24b61e7afda4017066c4f39177cce29d /setup.py | |
| parent | 755dc1f981b56e4c2663b5596c95590c948ef4ad (diff) | |
| download | mailman-79d9e36a0b824548a0f2bc83cb948fc5ce668151.tar.gz mailman-79d9e36a0b824548a0f2bc83cb948fc5ce668151.tar.zst mailman-79d9e36a0b824548a0f2bc83cb948fc5ce668151.zip | |
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -49,18 +49,18 @@ with open('src/mailman/version.py') as fp: # Create the .mo files from the .po files. There may be errors and warnings # here and that could cause the digester.txt test to fail. -start_dir = os.path.dirname('src/mailman/messages') -for dirpath, dirnames, filenames in os.walk(start_dir): - for filename in filenames: - po_file = os.path.join(dirpath, filename) - basename, ext = os.path.splitext(po_file) - if ext <> '.po': - continue - mo_file = basename + '.mo' - if (not os.path.exists(mo_file) or - os.path.getmtime(po_file) > os.path.getmtime(mo_file)): - # The mo file doesn't exist or is older than the po file. - os.system('msgfmt -o %s %s' % (mo_file, po_file)) +## start_dir = os.path.dirname('src/mailman/messages') +## for dirpath, dirnames, filenames in os.walk(start_dir): +## for filename in filenames: +## po_file = os.path.join(dirpath, filename) +## basename, ext = os.path.splitext(po_file) +## if ext <> '.po': +## continue +## mo_file = basename + '.mo' +## if (not os.path.exists(mo_file) or +## os.path.getmtime(po_file) > os.path.getmtime(mo_file)): +## # The mo file doesn't exist or is older than the po file. +## os.system('msgfmt -o %s %s' % (mo_file, po_file)) |
