[qmtest] rpm generation

Stefan Seefeld seefeld at sympatico.ca
Tue Sep 16 20:32:42 UTC 2003


Mark Mitchell wrote:

> Do you want to try to work on the QM_HOME bits?  If not, let me know,
> and I will try to get to those.

Attached is a patch that fixes this issue:
 From within the qmtest.py executable I deduce the data_dir by taking all
but the two last components of the path (on unix it's installed in
<prefix>/bin/qmtest.py, on windows in <prefix>/Scripts/qmtest.py).
I didn't use the __file__ attribute as that is only defined for modules,
not scripts / main executables.

Just when I was ready with this patch I got a reply from the
bdist_wininst author, who told me that python 2.3 contained an updated
distutils version with an 'post_install' script feature, which looks
like an even better way to fix this kind of thing. But as we go with
python 2.2, that's not an option for now...

Regards,
		Stefan







More information about the qmtest mailing list