Skip to content

Commit b02c1d5

Browse files
committed
Fix GetLibName to extract library name from pyproject.toml
1 parent fbec7ca commit b02c1d5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/utils.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ REM ======================================================
1818

1919
:GetLibName
2020
pushd %~dp0..
21-
for %%I in (.) do set %1=%%~nxI
21+
powershell -Command "(Get-Content 'pyproject.toml' | Select-String '^name = ') -replace '^name = \"', '' -replace '\"$', ''" > _tmp_.txt
22+
set /p %1=<_tmp_.txt
23+
del _tmp_.txt
2224
popd
2325
goto:eof
2426

0 commit comments

Comments
 (0)