Hi Istvan, Titus, Marek, I switched the code that starts the test XMLRPC server from using os.system() to use our standard FilePopen mechanism (which has the same interface as subprocess, and uses subprocess with temporary files on Python > 2.3; for Python 2.3 it provides its own equivalent functionality). This should resolve the issues about properly quoting arguments on different platforms.
I also extended FilePopen to handle stderr=PIPE on Python 2.3, which meant making sure it does the right thing to redirect stderr on sh, csh and Windows. I also changed FilePopen to only use commands.mkarg on UNIX Python 2.3; on Windows Python 2.3 it will use a trivial double-quote quoting as suggested by Istvan. I have tested this on Python 2.6 (Mac OS 10.5.6), Python 2.5 (Windows XP Pro, cygwin), and Python 2.3 (linux 2.6.24, ubuntu 8.04 running inside vmware fusion 2). You can get this from the popen_tmp branch on Titus' github repository. -- Chris On Apr 27, 2009, at 7:04 AM, Istvan Albert wrote: > > > > On Apr 25, 12:39 pm, "C. Titus Brown" <c...@msu.edu> wrote: > > >> second, I think we should use commands.mkarg for this. (L > >> p.s. I don't actually know if it works on Windows, but it should. > > It does not seem to work. It uses single quotes whereas windows > expects double quotes. > > (in the module documentation it says that it is a Unix module) > > Istvan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pygr-dev" group. To post to this group, send email to pygr-dev@googlegroups.com To unsubscribe from this group, send email to pygr-dev+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pygr-dev?hl=en -~----------~----~----~----~------~----~------~--~---