]> SALOME platform Git repositories - tools/libbatch.git/commitdiff
Salome HOME
just a little modification BR_AR
authorsecher <secher>
Thu, 10 Dec 2009 14:09:48 +0000 (14:09 +0000)
committersecher <secher>
Thu, 10 Dec 2009 14:09:48 +0000 (14:09 +0000)
src/LSF/Batch_BatchManager_eLSF.cxx

index 44a79764f5cee46de1e0cc1f9968b9bcd6bfd2b7..2f34d04299460e999afa2a708e4b48cba156d60a 100644 (file)
@@ -261,8 +261,13 @@ namespace Batch {
     string baseDir;
     if( pos != string::npos )
       baseDir = getHomeDir(workDir) + workDir.substr(pos+5,workDir.length()-5);
-    else
-      baseDir = workDir;
+    else{
+      pos = workDir.find("~");
+      if( pos != string::npos )
+       baseDir = getHomeDir(workDir) + workDir.substr(pos+1,workDir.length()-1);
+      else
+       baseDir = workDir;
+    }
     tempOutputFile << "#BSUB -o " << baseDir << "/logs/output.log." << rootNameToExecute << endl ;
     tempOutputFile << "#BSUB -e " << baseDir << "/logs/error.log." << rootNameToExecute << endl ;