浏览代码

Windows file copy fix

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

2
build.py


def copy_file_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), "/Q", "/Y"])
subprocess.call(["xcopy", os.path.join(repo_path, path), os.path.join(project_target_path, os.path.dirname(path)), "/Q", "/Y"])
else:
shutil.copy(os.path.join(repo_path, path), os.path.join(project_target_path, path))

正在加载...
取消
保存