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:
parent
980d1eb0eb
commit
eb598ffd16
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user