From dfa27ed5c788afd9ff48b8e3836c7c933c02eb44 Mon Sep 17 00:00:00 2001
From: Ger van Diepen <diepen@astron.nl>
Date: Thu, 10 Jul 2008 15:11:09 +0000
Subject: [PATCH] bug 1207: Needed to make path of vds file absolute

---
 CEP/BB/MS/src/combinevds.cc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/CEP/BB/MS/src/combinevds.cc b/CEP/BB/MS/src/combinevds.cc
index 172aae5439c..53f86c6f690 100644
--- a/CEP/BB/MS/src/combinevds.cc
+++ b/CEP/BB/MS/src/combinevds.cc
@@ -22,6 +22,7 @@
 
 #include <lofar_config.h>
 #include <MWCommon/VdsDesc.h>
+#include <casa/OS/Path.h>
 #include<stdexcept>
 #include <iostream>
 #include <fstream>
@@ -34,7 +35,7 @@ int main(int argc, const char* argv[])
 {
   try {
     if (argc < 3) {
-      cout << "Run as:  makevds outName in1 in2 ..." << endl;
+      cout << "Run as:  combinevds outName in1 in2 ..." << endl;
       return 0;
     }
 
@@ -50,7 +51,8 @@ int main(int argc, const char* argv[])
     vpds.reserve (argc-2);
     for (int i=2; i<argc; ++i) {
       VdsPartDesc* vpd = new VdsPartDesc(ParameterSet(argv[i]));
-      vpd->setName (argv[i], vpd->getFileSys());
+      casa::Path path(argv[i]);
+      vpd->setName (path.absoluteName(), vpd->getFileSys());
       vpds.push_back (vpd);
       vpd->clearParms();
       const vector<int>& chans = vpd->getNChan();
-- 
GitLab