]> SALOME platform Git repositories - tools/libbatch.git/commitdiff
Salome HOME
If the local path for an output file is relative, consider it relative to the results... V1_6_0rc1
authorbarate <barate>
Mon, 19 Nov 2012 15:02:37 +0000 (15:02 +0000)
committerbarate <barate>
Mon, 19 Nov 2012 15:02:37 +0000 (15:02 +0000)
src/Core/Batch_BatchManager_eClient.cxx

index 0895672719b7b149487564791be94940851efa99..92162b20f8bcdd38d74ad90f7d67ca04de681c61 100644 (file)
@@ -49,6 +49,7 @@
 #include "Batch_Constants.hxx"
 #include "Batch_BatchManager_eClient.hxx"
 #include "Batch_RunTimeException.hxx"
+#include "Batch_Utils.hxx"
 
 #ifdef MSVC
 #define EXISTS(path) _access_s(path, 0) == 0
@@ -166,8 +167,12 @@ namespace Batch {
     for(Vit=V.begin(); Vit!=V.end(); Vit++) {
       CoupleType cpt  = *static_cast< CoupleType * >(*Vit);
       Couple outputFile = cpt;
+      string localPath = outputFile.getLocal();
+      if (!Utils::isAbsolutePath(localPath)) {
+        localPath = directory + "/" + localPath;
+      }
       status = _protocol.copyFile(outputFile.getRemote(), _hostname, _username,
-                                  outputFile.getLocal(), "", "");
+                                  localPath, "", "");
       if (status) {
         // Try to get what we can (logs files)
         // throw BatchException("Error of connection on remote host");