diff -r e3e70e197d8d django/bin/make-messages.py
a
|
b
|
def make_messages():
|
74 | 74 | if os.path.exists(potfile): |
75 | 75 | os.unlink(potfile) |
76 | 76 | |
| 77 | all_files = [] |
77 | 78 | for (dirpath, dirnames, filenames) in os.walk("."): |
78 | 79 | for file in filenames: |
| 80 | all_files.append(os.path.join(dirpath, file)) |
| 81 | all_files.sort() |
| 82 | for file_full_path in all_files: |
| 83 | (dirpath, file) = os.path.split(file_full_path) |
79 | 84 | if domain == 'djangojs' and file.endswith('.js'): |
80 | 85 | if verbose: sys.stdout.write('processing file %s in %s\n' % (file, dirpath)) |
81 | 86 | src = open(os.path.join(dirpath, file), "rb").read() |