very odd, random window dumps

Jeffrey Froman jeffrey at fro.man
Wed Sep 8 20:03:49 EDT 2004


Peter Kleiweg wrote:

> Running small Python scripts, now and again a window dump is
> created, and saved as the module name without the extension.
> This happens on Linux. The dumped file is a PostScript file with
> the image of one Window that was active at the moment
> (completely unrelated to the Python application), and has a
> header comment that says it was created by ImageMagick. Magic,
> indeed. The file has the somewhat unusual access bits
> -rwxr--r--, but normal user and group.

This is probably the result of accidentally typing "import somemodule" on
the Linux command line before invoking the python interpreter. "import" is
an ImageMagick command that takes a window capture.

i.e.:

$ import myprog
<hangs>
<click the window>
$ python
>>> import myprog
...

Jeffrey



More information about the Python-list mailing list