本文整理汇总了Python中projects.Projects.create_tm_for_all_projects方法的典型用法代码示例。如果您正苦于以下问题:Python Projects.create_tm_for_all_projects方法的具体用法?Python Projects.create_tm_for_all_projects怎么用?Python Projects.create_tm_for_all_projects使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类projects.Projects
的用法示例。
在下文中一共展示了Projects.create_tm_for_all_projects方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: init_logging
# 需要导入模块: from projects import Projects [as 别名]
# 或者: from projects.Projects import create_tm_for_all_projects [as 别名]
found = True
if not found:
continue
projects.add_project(project_dto, add_source)
if __name__ == '__main__':
print 'Translation memory builder version 0.1'
print 'Use --help for assistance'
start_time = time.time()
init_logging()
read_parameters()
load_projects_from_json()
if only_all_projects_tm:
projects.create_tm_for_all_projects()
elif softcatala_only:
projects.set_tm_file('softcatala-tm.po')
projects.create_tm_for_all_projects()
else:
projects()
projects.to_tmx()
projects.statistics()
s = 'Execution time: {0} seconds'.format(str(time.time() - start_time))
logging.info(s)