From eb598ffd169657961a9abb9f9e6bc65b8e80dd63 Mon Sep 17 00:00:00 2001 From: Sebastian Hoogen Date: Wed, 24 Sep 2014 11:43:18 +0200 Subject: [PATCH] fixes #1740 quote pov-ray binary on windows this fixes a bug introduced by 3523741e96d0b8db338f8f05f13282f90ccbbe67 it restores the double quotes for the shell and uses single quotes for the python string. --- src/Mod/Raytracing/Gui/Command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Raytracing/Gui/Command.cpp b/src/Mod/Raytracing/Gui/Command.cpp index acc4fe4cf..94b0dbb55 100644 --- a/src/Mod/Raytracing/Gui/Command.cpp +++ b/src/Mod/Raytracing/Gui/Command.cpp @@ -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