Ignore:
Timestamp:
08/19/18 17:52:00 (6 years ago)
Author:
tbretz
Message:
Extract only the name of the program not the path
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/root2sql.cc

    r19181 r19185  
     1#include <boost/regex.hpp>
     2#include <boost/filesystem.hpp>
    13#include <boost/algorithm/string/join.hpp>
    2 #include <boost/regex.hpp>
    34
    45#include "Database.h"
     
    1516
    1617using namespace std;
     18namespace fs = boost::filesystem;
    1719
    1820// ------------------------------------------------------------------------
     
    637639    if (!row_format.empty())
    638640        query += "ROW_FORMAT="+row_format+"\n";
    639     query += "COMMENT='created by "+conf.GetName()+"'\n";
     641    query += "COMMENT='created by "+fs::path(conf.GetName()).filename().string()+"'\n";
    640642
    641643    // FIXME: Can we omit the catching to be able to print the
Note: See TracChangeset for help on using the changeset viewer.