23 #include <boost/filesystem.hpp>
26 using namespace Euclid::Configuration;
27 namespace po = boost::program_options;
28 namespace fs = boost::filesystem;
32 const std::string PYTHON_CONFIG_FILE {
"python-config-file" };
37 namespace SourceXtractor {
39 PythonConfig::PythonConfig(
long manager_id) :
Configuration(manager_id) {
44 return {{
"Measurement config", {
45 {PYTHON_CONFIG_FILE.c_str(), po::value<std::string>()->default_value({},
""),
46 "Measurements python configuration file"},
47 {PYTHON_ARGV.c_str(), po::value<std::vector<std::string>>()->multitoken(),
48 "Parameters to pass to Python via sys.argv"}
66 if (args.find(PYTHON_ARGV) != args.end()) {
71 singleton.setupContext();