Salome HOME
Fix path to mpicc and mpicxx
[tools/sat_salome.git] / products / compil_scripts / PyQt-5.9.bat
index 576f24c8c6d27b95eceed1d20ed7d15a6d4df2ee..b1b2313c9c3111eaf9500fa1dc427555ae167fa3 100644 (file)
@@ -62,6 +62,13 @@ if NOT %ERRORLEVEL% == 0 (
     exit 3
 )
 
+REM In debug mode, we need to rename all .pyd to _d.pyd.
+if %SAT_DEBUG% == 1 (
+  cd %PRODUCT_INSTALL%\lib\%python_name%\site-packages\PyQt5
+  powershell -Command "Get-ChildItem -File -Recurse *.pyd| ForEach-Object {if ((!$_.Name.EndsWith('_d.pyd'))) {  $_ | Copy-Item -Destination {$_.Name  -replace '.pyd','_d.pyd'}}}"
+  powershell -Command "Get-ChildItem -File -Recurse *_d.pyd| ForEach-Object {if (($_.Name.EndsWith('_d.pyd'))) {  $_ | Copy-Item -Destination {$_.Name  -replace '_d.pyd','.pyd'}}}"
+)
+
 echo.
 echo ########## END
 
@@ -70,4 +77,4 @@ EXIT /B
 
 :NORMALIZEPATH
   SET RETVAL=%~dpfn1
-  EXIT /B
\ No newline at end of file
+  EXIT /B