22#include <boost/filesystem.hpp>
26namespace po = boost::program_options;
27namespace fs = boost::filesystem;
31const std::string PYTHON_CONFIG_FILE {
"python-config-file" };
43 return {{
"Measurement config", {
44 {PYTHON_CONFIG_FILE.c_str(), po::value<std::string>()->default_value({},
""),
45 "Measurements python configuration file"},
46 {PYTHON_ARGV.c_str(), po::value<std::vector<std::string>>()->multitoken(),
47 "Parameters to pass to Python via sys.argv"}
53 auto filename = args.
find(PYTHON_CONFIG_FILE)->second.as<
std::string>();
54 if (!filename.empty() && !fs::exists(filename)) {
62 auto filename = args.
find(PYTHON_CONFIG_FILE)->second.as<
std::string>();
63 if (!filename.empty()) {
65 if (args.
find(PYTHON_ARGV) != args.
end()) {
68 singleton.runFile(filename, argv);