Skip to content
Snippets Groups Projects
Commit 7136d3f7 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Add option --load-pyplugin (or -q)

parent d7b27b04
No related branches found
No related tags found
No related merge requests found
......@@ -87,6 +87,9 @@ namespace gepetto {
("load-plugin,p", po::value <Strings_t>(),
"load the plugin")
("load-pyplugin,q", po::value <Strings_t>(),
"load the PythonQt module as a plugin")
("no-plugin,P", "do not load any plugin")
("auto-write-settings,w", "write the settings in the configuration file")
......@@ -129,6 +132,12 @@ namespace gepetto {
it != envs.end(); ++it)
addPlugin (QString::fromStdString(*it), !noPlugin);
}
if (vm.count ("load-pyplugin") > 0) {
const Strings_t& envs = vm["load-pyplugin"].as <Strings_t> ();
for (Strings_t::const_iterator it = envs.begin();
it != envs.end(); ++it)
addPyPlugin (QString::fromStdString(*it), !noPlugin);
}
if (help || genAndQuit) retVal = 1;
if (unrecognized.size () > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment