Commit 59b611be authored by hkrishna's avatar hkrishna

bug fixing command line options for pyside and pysideviewer and disabling the...

bug fixing command line options for pyside and pysideviewer and disabling the capability for the gui to send the cli a pysideviewer flag when starting a cli

git-svn-id: http://visit.ilight.com/svn/visit/trunk/src@16606 18c085ea-50e0-402c-830e-de6fd14e8384
parent 14488677
......@@ -321,12 +321,10 @@ main(int argc, char *argv[])
else if(strcmp(argv[i], "-pyside") == 0)
{
pyside = true;
++i;
}
else if(strcmp(argv[i], "-pysideviewer") == 0)
{
pyside_gui = true;
++i;
}
else
{
......@@ -343,6 +341,21 @@ main(int argc, char *argv[])
}
}
//for some reason if the viewer requests the pysideviewer
//for now this does not make sense
for(int i = 0; i < argc; ++i)
{
std::string tmp = argv[i];
if(pyside_gui && tmp == "-reverse_launch")
{
std::cerr << "Warning: Cannot enable pysideviewer from remote process,"
<< " disabling and reverting functionality to pyside"
<< std::endl;
pyside_gui = false;
pyside = true;
}
}
TRY
{
// Initialize python
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment