fixes #1740 quote pov-ray binary on windows

this fixes a bug introduced by 3523741e96
it restores the double quotes for the shell and uses single quotes for the
python string.
This commit is contained in:
Sebastian Hoogen 2014-09-24 11:43:18 +02:00 committed by wmayer
parent 980d1eb0eb
commit eb598ffd16

View File

@ -648,7 +648,7 @@ void CmdRaytracingRender::activated(int iMsg)
doCommand(Doc,"f.close()");
#ifdef FC_OS_WIN32
// http://povray.org/documentation/view/3.6.1/603/
doCommand(Doc,"subprocess.call(\"%s %s +W%s +H%s +O%s /EXIT /RENDER \"+TempFile)",renderer.c_str(),par.c_str(),w.str().c_str(),h.str().c_str(),fname.c_str());
doCommand(Doc,"subprocess.call('\"%s\" %s +W%s +H%s +O\"%s\" /EXIT /RENDER '+TempFile)",renderer.c_str(),par.c_str(),w.str().c_str(),h.str().c_str(),fname.c_str());
#else
doCommand(Doc,"subprocess.call('\"%s\" %s +W%s +H%s +O\"%s\" '+TempFile,shell=True)",renderer.c_str(),par.c_str(),w.str().c_str(),h.str().c_str(),fname.c_str());
#endif