[qmtest] [PATCH] Don't use elaborate configuration stuff to find library directory

Mark Mitchell mark at codesourcery.com
Tue Aug 24 06:13:46 UTC 2004


Nathaniel Smith wrote:

>The patch attached for review removes the 'lib_dir' configuration variable 
>from everywhere it's used, and stops get_lib_directory from depending on 
>qm.prefix and qm.lib_dir.
>
>This is a little more inconsistent (get_lib_directory now works differently 
>from the other get_*_directory functions), but it is simpler and more 
>reliable, and, more importantly, it works even if we are not running the 
>'qmtest' executable itself (which reaches into the qm namespace and defines 
>qm.prefix).  Thus with this patch, it is possible to write third party scripts 
>that do things like
>  import qm.test.base
>  results_iterator = qm.test.base.load_results(open("foo.qmr"), None)
>  for result in results_iterator
>  
>
This is very clever.  Please check it in!

-- 
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark at codesourcery.com




More information about the qmtest mailing list