Changeset 3550
- Timestamp:
- 04/25/08 06:51:35 (4 months ago)
- Files:
-
- doxygenplugin/0.11/doxygentrac/doxygentrac.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
doxygenplugin/0.11/doxygentrac/doxygentrac.py
r3132 r3550 202 202 # Search in documentation directories 203 203 path = os.path.join(self.base_path, doc) 204 path = os.path.join(path, self.html_output) 204 205 if os.path.isdir(path): 205 206 index = os.path.join(path, 'search.idx') … … 213 214 214 215 # Search in common documentation directory 215 index = os.path.join(self.base_path, 'search.idx') 216 index = os.path.join(self.base_path, self.html_output) 217 index = os.path.join(index, 'search.idx') 216 218 if os.path.exists(index): 217 219 creation = os.path.getctime(index) … … 347 349 def _search_in_documentation(self, doc, keywords): 348 350 # Open index file for documentation 349 index = os.path.join(self.base_path, doc, 'search.idx')351 index = os.path.join(self.base_path, doc, self.html_output, 'search.idx') 350 352 if os.path.exists(index): 351 353 fd = open(index) … … 393 395 for i in range(numDocs): 394 396 idx = self._readInt(fd) 395 freq = self._readInt(fd) 397 if idx == -1: 398 freq = 0 399 else: 400 freq = self._readInt(fd) 396 401 results.append({'idx': idx, 'freq': freq >> 1, 397 402 'hi': freq & 1, 'multi': multiplier}) … … 403 408 404 409 for i in range(numDocs): 410 if results[count]['idx'] == -1: 411 results[count]['name'] = '' 412 results[count]['url'] = '' 413 count += 1 414 continue 405 415 fd.seek(results[count]['idx']) 406 416 name = self._readString(fd) 407 417 url = self._readString(fd) 408 418 results[count]['name'] = name 409 results[count]['url'] = url419 results[count]['url'] = self.html_output + '/' + url 410 420 count += 1 411 421 … … 441 451 b3 = fd.read(1) 442 452 b4 = fd.read(1) 453 454 if not b1 or not b2 or not b3 or not b4: 455 return -1; 443 456 444 457 return (ord(b1) << 24) | (ord(b2) << 16) | (ord(b3) << 8) | ord(b4)
