Hi all,
Currently, on windows, pythonw.exe should be used according to the code in /src/extension/implementation/script.cpp. However, build.xml only copies python.exe to the dist dir. The strange thing is: Inkscape needs python.exe, and does not want pythonw.exe. Something wrong with the #ifdef in script.cpp? It would be nice to fix this, because it removes the DOS popup when running an effect (nice for live preview).
Thanks, Johan
J.B.C.Engelen@...1578... wrote:
Currently, on windows, pythonw.exe should be used according to the code in /src/extension/implementation/script.cpp. However, build.xml only copies python.exe to the dist dir. The strange thing is: Inkscape needs python.exe, and does not want pythonw.exe. Something wrong with the #ifdef in script.cpp? It would be nice to fix this, because it removes the DOS popup when running an effect (nice for live preview).
Agreed, we should be using pythonw.exe now that we have Ted's live preview.
Aaron
Aaron Spike schrieb:
J.B.C.Engelen@...1578... wrote:
Currently, on windows, pythonw.exe should be used according to the code in /src/extension/implementation/script.cpp. However, build.xml only copies python.exe to the dist dir. The strange thing is: Inkscape needs python.exe, and does not want pythonw.exe. Something wrong with the #ifdef in script.cpp? It would be nice to fix this, because it removes the DOS popup when running an effect (nice for live preview).
Agreed, we should be using pythonw.exe now that we have Ted's live preview.
Aaron
I was digging into the exact same issue ...
... and then there should be a modification like below. Otherwise it builds a path like \inkscape\pythonw\pythonw.exe :-O
I strongly believe that Inkscape currently only works if there is a local python installed. :-?
HTH, Adib. ---
Index: script.cpp =========================================================== --- script.cpp (Revision 17788) +++ script.cpp (Arbeitskopie) @@ -152,7 +152,7 @@ if (rt.getExeInfo(fullPath, path, exeName)) { Glib::ustring interpPath = path; interpPath.append("\"); - interpPath.append(interpName); + interpPath.append(interpNameArg); interpPath.append("\"); interpPath.append(interpName); interpPath.append(".exe");
and in build.xml: @@ -571,6 +571,7 @@ <!-- PYTHON --> <copy file="${gtk}/python/python25.dll" todir="${dist}"/> <copy file="${gtk}/python/python.exe" todir="${dist}/python"/> + <copy file="${gtk}/python/pythonw.exe" todir="${dist}/python"/> <copy todir="${dist}/python"> <fileset dir="${gtk}/python/Lib"/> </copy> <copy todir="${dist}/python"> <fileset dir="${gtk}/python/DLLs"/> </copy> <copy todir="${dist}/python"> <fileset dir="${gtk}/python/Scripts"/> </copy>
participants (3)
-
unknown@example.com
-
Aaron Spike
-
Adib taraben