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

Nathaniel Smith njs at uclink.berkeley.edu
Sat Aug 21 04:48:56 UTC 2004


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:
    ...

-- Nathaniel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-lib_dir.patch
Type: application/octet-stream
Size: 4832 bytes
Desc: not available
URL: <http://sourcerytools.com/pipermail/qmtest/attachments/20040820/d75c693e/attachment.obj>


More information about the qmtest mailing list