]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOGimmick.cpp
Modified due to problems in linux.
[creaImageIO.git] / src2 / creaImageIOGimmick.cpp
index 0dc9796582297d38a4a24b8832d149c3a6951089..413a83699eff2d0adbec0f279f2746cfd7ccdca2 100644 (file)
@@ -55,7 +55,11 @@ namespace creaImageIO
 
        std::string dbpath = GetLocalDatabasePath();
     // Create or open local database
-       mLocalDatabase = createDB(i_nameDB, mCurrentDirectory + "\\.gimmick\\localdatabase_Descriptor.txt", dbpath);
+       std::string dpath= mCurrentDirectory + "/.gimmick/localdatabase_Descriptor.txt";
+       boost::algorithm::replace_all( dpath,
+                                      INVALID_FILE_SEPARATOR , 
+                                      VALID_FILE_SEPARATOR);
+       mLocalDatabase = createDB(i_nameDB, dpath, dbpath);
     // Add it to the TreeHandlerMap
     mTreeHandlerMap[i_nameDB] = mLocalDatabase;