[reportlab-users] RL runtime introspection

Dinu Gherman reportlab-users@reportlab.com
Fri, 25 Oct 2002 11:08:25 +0200


Hi,

ages ago I started to write some benchmarking code and part of
that was to make a "report" about the environment running it.
The output for that part was something like this:

   Runtime environment:

   OS name: posix, platform: darwin
   (Mac OS X 10.1.5 - 600 MHz # edit on your platform!)
   Python version: 2.2.1 final 0
   Std.lib. XML version: 1.1.1.1
   ReportLab toolkit version: 1.15
   ReportLab default encoding: MacRomanEncoding
   4Suite not found
   RXP version: 1.2.5

Now, I want to blow this up a little and would like to include
information about availability of the _rl_accel and renderPM
libraries, too. Is there a "canonical" way to do this? For the
latter I can imagine a simple hack like "from reportlab.graphics
import renderPM", but that's kind of using side-effects. What
do other people use?

The background is that AFAIK renderPM is still not available as
a seperate tarball and on "foreign" machines I'm not always sure
how people installed things, e.g. if they ran setup.py or not...

Regards,

Dinu

--
Dinu C. Gherman
......................................................................
"I can't understand why people are frightened of new ideas. I'm
frightened of the old ones." (John Cage)