Skip to content

Commit

Permalink
Fix paths for non-windows agents (#17096)
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu authored Mar 5, 2021
1 parent 849c295 commit 36e4c0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eng/scripts/Language-Settings.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ $BlobStorageUrl = "https://azuresdkdocs.blob.core.windows.net/%24web?restype=con
function Get-AllPackageInfoFromRepo ($serviceDirectory)
{
$allPackageProps = @()
$searchPath = "sdk/*/*/setup.py"
$searchPath = Join-Path sdk * * setup.py
if ($serviceDirectory)
{
$searchPath = "sdk/${serviceDirectory}/*/setup.py"
$searchPath = Join-Path sdk ${serviceDirectory} * setup.py
}

$allPkgPropLines = $null
try
{
Push-Location $RepoRoot
pip install packaging==20.4 -q -I
$allPkgPropLines = python "eng\scripts\get_package_properties.py" -s $searchPath
$allPkgPropLines = python (Join-path eng scripts get_package_properties.py) -s $searchPath
}
catch
{
Expand Down

0 comments on commit 36e4c0d

Please sign in to comment.