From: Nabil Ghodbane Date: Wed, 24 Mar 2021 14:11:28 +0000 (+0100) Subject: SIP debug build fix - Windows only X-Git-Tag: V9_7_0~74 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3d0d65bfa117f6fc7daba637a96ba647a3306c4b;p=tools%2Fsat_salome.git SIP debug build fix - Windows only --- diff --git a/products/compil_scripts/sip.bat b/products/compil_scripts/sip.bat index 3a18662..63d895c 100755 --- a/products/compil_scripts/sip.bat +++ b/products/compil_scripts/sip.bat @@ -61,8 +61,7 @@ if NOT %ERRORLEVEL% == 0 ( REM In debug mode, we need to rename all _d.pyd to .pyd... don't ask why. Seems like a known bug in OmniORB. if %SAT_DEBUG% == 1 ( cd %PRODUCT_INSTALL%\lib\%python_name%\site-packages - powershell -Command "Get-ChildItem *_d.pyd| Rename-Item -newname { $_.name -replace '_d.pyd','.pyd' }" - powershell -Command "Get-ChildItem *.pyd| Rename-Item -newname { $_.name -replace '.pyd','_d.pyd' }" + powershell -Command "Get-ChildItem -File -Recurse *.pyd| ForEach-Object {if (($_.Name.EndsWith('_d.pyd'))) { $_ | Copy-Item -Destination {$_.Name -replace '_d.pyd','.pyd'}}}" ) echo.