Skip to content

Commit

Permalink
Fix up single file copy calls too
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlian committed Feb 10, 2018
1 parent 4b9bc46 commit 5bea12e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,16 @@ def cleanup(logger):
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"])
else:
shutil.copytree(os.path.join(repo_path, path),os.path.join(project_target_path, path))

def copy_file_to_project(path, repo_path, project_target_path, logger):
logger.info("Copying {}".format(path))
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):
Expand Down

0 comments on commit 5bea12e

Please sign in to comment.