#ifdef WNT
std::string logFilename=getenv("TEMP");
logFilename += "\\";
+ std::string user = getenv( "USERNAME" );
#else
+ std::string user = getenv( "USER" );
std::string logFilename="/tmp";
char* val = getenv("SALOME_TMP_DIR");
if(val)
}
logFilename += "/";
#endif
- logFilename += _NS->ContainerName(params)+"_"+ resource_selected +"_"+getenv( "USER" ) ;
+ logFilename += _NS->ContainerName(params)+"_"+ resource_selected +"_"+user;
std::ostringstream tmp;
tmp << "_" << getpid();
logFilename += tmp.str();
// Setting log file name
logFilename=":"+logFilename;
logFilename="@"+Kernel_Utils::GetHostname()+logFilename;
- logFilename=getenv( "USER" )+logFilename;
+ logFilename=user+logFilename;
ret->logfilename(logFilename.c_str());
RmTmpFile(_TmpFileName); // command file can be removed here
}
self._adip = socket.gethostbyname(self._machine) # IP adress
if sys.platform == "win32":
self._uid = os.getpid()
- self._pwname = os.environ["USER"]
+ self._pwname = os.environ["USERNAME"]
else:
self._uid = os.getuid()
list = pwd.getpwuid(self._uid)