Mercurial > p > roundup > code
diff roundup/instance.py @ 3777:74aebbbea305
Sorry for the mega-patch - was all done on the train:
- handling of required for booelan False and numeric 0 [SF#1608200]
- removed bogus args attr of ConfigurationError [SF#1608056]
- implemented start_response in roundup.cgi [SF#1604304]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 11 Dec 2006 23:36:15 +0000 |
| parents | 46e3d5d0901d |
| children | bbab97f8ffb2 |
line wrap: on
line diff
--- a/roundup/instance.py Sun Dec 03 01:09:16 2006 +0000 +++ b/roundup/instance.py Mon Dec 11 23:36:15 2006 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: instance.py,v 1.36 2006-12-01 10:38:40 schlatterbeck Exp $ +# $Id: instance.py,v 1.37 2006-12-11 23:36:15 richard Exp $ '''Tracker handling (open tracker). @@ -71,7 +71,8 @@ self.detectors = self.get_extensions('detectors') # db_open is set to True after first open() self.db_open = 0 - sys.path.remove (libdir) + if libdir in sys.path: + sys.path.remove(libdir) def get_backend_name(self): o = __builtins__['open'] @@ -116,7 +117,8 @@ for extension in self.get_extensions('extensions'): extension(self) detectors = self.get_extensions('detectors') - sys.path.remove (libdir) + if libdir in sys.path: + sys.path.remove(libdir) db = vars['db'] # apply the detectors for detector in detectors:
