浏览代码

Fix up single file copy calls too

/main
Alex Lian 7 年前
当前提交
58234b8e
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 7
      build.py

7
build.py


def copy_path_to_project(path, repo_path, project_target_path, logger):
logger.info("Copying {}".format(path))
if platform.system() == "Windows":
subprocess.call(["xcopy", os.path.join(repo_path, path), os.path.join(project_target_path, path), "/E", "/Q", "/Y"])
subprocess.call(["xcopy", os.path.join(repo_path, path), os.path.join(project_target_path, os.path.dirname(path)), "/E", "/Q", "/Y"])
shutil.copy(os.path.join(repo_path, path), os.path.join(project_target_path, path))
if platform.system() == "Windows":
subprocess.call(["xcopy", os.path.join(repo_path, path), os.path.join(project_target_path, path), "/Q", "/Y"])
else:
shutil.copy(os.path.join(repo_path, path), os.path.join(project_target_path, path))
# Prepare an empty project for editor tests
def prepare_editor_test_project(repo_path, project_path, logger):

正在加载...
取消
保存