[SciPy-dev] Crash in plt.image()

pearu at scipy.org pearu at scipy.org
Wed Apr 10 05:28:26 CDT 2002


On Wed, 10 Apr 2002, [iso-8859-15] José Luis Gómez Dans wrote:

> 	However, it seems a bit harsh for plt.image() to segfault if 
> gui_thread is nor imported, but looking at it, it looks as if it might 
> be a complicated effort to have the plt. methods check whether 
> gui_thread has been imported and if not, import it into the 
> automatically.

sys.modules.has_key('gui_thread')

should do it.

Would it be possible automatically import gui_thread while importing
plt? In what cases it wouldn't work?

Pearu




More information about the Scipy-dev mailing list