From: Grant E. <gr...@vi...> - 2007-04-18 16:26:25
|
I feel like I've spent the past 3 days beating my head against a wall: no matter what I do, I can't get gnuplot-py to work reliably on Win2K or WinXP. It seems to work fine in the following situations: * Program called "normally" (e.g. python foo.py) with current directory containing pgnuplot.exe and wgnuplot.exe. * Program bundled via py2exe and called via shortcut icon starting in directory containing [pw]gnuplot.exe * Program bundled via py2exe and called via shortcut icon starting in different directory. * Program bundled via Py2exe and called via command-line from anywhere. What refuses to work is when the program is started by clicking on a file whose type has been associated with the program. In that case, I always get an "invalid parameter" IOError when gp_win32.py writes to the pipe in its __call__ method. I've switch gp_win32.py so that it uses subprocess instead of os.popen, and that doesn't seem to help. I get either the same error or I get an "invalid handle" when the process is being started. Can anybody point me towards documentation on how to get reliable operation on Win32? It's really not possible to describe how much I hate working with Microsoft Windows... -- Grant Edwards gr...@vi... |