John Hunter wrote:
Perhaps it would be better to define a constant in
matplotlib.__init__.py, something like
matplotlib.PY2EXE = hasattr(sys, 'frozen')
because then the code which is conditional upon py2exe would be more
if not matplotlib.PY2EXE
or something like that...
Except that Py2EXE is not the only method of "freezing" apps. In particular, you'd want this to work with OS-X's Py2App, and probably other methods of bundling apps.
you might want:
matplotlib.FROZEN = hasattr(sys, 'frozen')
if not matplotlib.FROZEN
Then you could also accommodate other keywords that other bundling methods use.
BTW, is someone really successfully using PyGTK on Windows? Cool!
Christopher Barker, Ph.D.
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception