From 2859aca17cd7ee95298087d834a9f869fde889f8 Mon Sep 17 00:00:00 2001 From: Milan Kolar Date: Mon, 5 Apr 2021 22:21:25 +0200 Subject: [PATCH] add poetry to path before building --- tools/build.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/build.ps1 b/tools/build.ps1 index a6c76dfafb..412bb111c1 100644 --- a/tools/build.ps1 +++ b/tools/build.ps1 @@ -157,11 +157,12 @@ Write-Host "Reading Poetry ... " -NoNewline if (-not (Test-Path -PathType Container -Path "$($env:USERPROFILE)\.poetry\bin")) { Write-Host "NOT FOUND" -ForegroundColor Yellow Install-Poetry + Write-Host "INSTALLED" -ForegroundColor Cyan } else { Write-Host "OK" -ForegroundColor Green } - +$env:PATH = "$($env:PATH);$($env:USERPROFILE)\.poetry\bin" Write-Host ">>> " -NoNewline -ForegroundColor green Write-Host "Cleaning cache files ... " -NoNewline @@ -172,6 +173,7 @@ Write-Host "OK" -ForegroundColor green Write-Host ">>> " -NoNewline -ForegroundColor green Write-Host "Building OpenPype ..." + $out = & poetry run python setup.py build 2>&1 if ($LASTEXITCODE -ne 0) {