Skip to content

Commit

Permalink
Fix API review for Python due to missing code file (Azure#35037)
Browse files Browse the repository at this point in the history
  • Loading branch information
praveenkuttappan authored Apr 2, 2024
1 parent 2739e0d commit b8bc89c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,10 @@ function Find-python-Artifacts-For-Apireview($artifactDir, $artifactName)

# Python requires pregenerated token file in addition to wheel to generate API review.
# Make sure that token file exists in same path as wheel file.
$tokenFile = Join-Path -Path $whlDirectory -ChildPath "${packageName}_Python.json"
$tokenFile = Join-Path -Path $whlDirectory -ChildPath "${packageName}_${Language}.json"
if (!(Test-Path $tokenFile))
{
Write-Host "API review token file for $($artifactName) does not exist in path $($whlDirectory). Skipping API review for $packageName"
Write-Host "API review token file for $($tokenFile) does not exist in path $($whlDirectory). Skipping API review for $packageName"
return $null
}
else
Expand Down

0 comments on commit b8bc89c

Please sign in to comment.