浏览代码

Don't walk in files and backups folder for translate

version-14
Anand Doshi 11 年前
父节点
当前提交
852d37c724
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      webnotes/translate.py

+ 3
- 0
webnotes/translate.py 查看文件

@@ -277,6 +277,9 @@ def export_messages(lang, outfile):
messages = {}
# extract messages
for (basepath, folders, files) in os.walk('.'):
if 'files' in folders: folders.remove('files')
if 'backups' in folders: folders.remove('backups')
def _get_messages(messages, basepath, mtype):
mlist = get_messages(basepath, mtype)
if not mlist:


正在加载...
取消
保存