浏览代码

Add function for preparing a project for editor tests

/main
Alex Lian 6 年前
当前提交
e9016313
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14
      build.py

14
build.py


import os
import json
import logging
import shutil
import textwrap
sub_packages = {}

for file in files:
logger.info(" {}".format(file))
os.remove(file)
# helper function for preparations of tests
def copy_path_to_project(path, repo_path, project_path, logger):
logger.info("Copying {}".format(path))
shutil.copytree(os.path.join(repo_path, path), os.path.join(project_path, "Assets", path))
# Prepare an empty project for editor tests
def prepare_editor_test_project(repo_path, project_path, logger):
copy_path_to_project("ImageTemplates", repo_path, project_path, logger)
copy_path_to_project("SampleScenes", repo_path, project_path, logger)
copy_path_to_project("TestbedPipelines", repo_path, project_path, logger)
copy_path_to_project("Tests", repo_path, project_path, logger)
正在加载...
取消
保存