}
// NPAL 18309 (Kill Notifd)
+
+ std::string python_exe;
+#ifdef WIN32
+ #ifdef _DEBUG_
+ python_exe = std::string("python_d");
+ #endif
+#else
+ python_exe = std::string("python");
+#endif
+
if ( !portNumber.empty() )
{
std::string cmd = ("from killSalomeWithPort import killNotifdAndClean; ");
cmd += std::string("killNotifdAndClean(") + portNumber + "); ";
- cmd = std::string("python -c \"") + cmd +"\" > /dev/null 2> /dev/null";
+ cmd = python_exe + std::string(" -c \"") + cmd; // +"\" > /dev/null 2> /dev/null";
MESSAGE(cmd);
system( cmd.c_str() );
}
{
std::string cmd = ("from PortManager import releasePort; ");
cmd += std::string("releasePort(") + portNumber + "); ";
- cmd = std::string("python -c \"") + cmd +"\" > /dev/null 2> /dev/null";
+ cmd = python_exe + std::string(" -c \"") + cmd +"\" > /dev/null 2> /dev/null";
MESSAGE(cmd);
system( cmd.c_str() );
}