| OLD | NEW |
| (Empty) | |
| 1 |
| 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 <html><head><title>Python: module telemetry.core.discover</title> |
| 4 </head><body bgcolor="#f0f0f8"> |
| 5 |
| 6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> |
| 7 <tr bgcolor="#7799ee"> |
| 8 <td valign=bottom> <br> |
| 9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a hre
f="telemetry.html"><font color="#ffffff">telemetry</font></a>.<a href="telemetry
.core.html"><font color="#ffffff">core</font></a>.discover</strong></big></big><
/font></td |
| 10 ><td align=right valign=bottom |
| 11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href=
"file:/Users/nduca/Local/chrome/src/tools/telemetry/telemetry/core/discover.py">
/Users/nduca/Local/chrome/src/tools/telemetry/telemetry/core/discover.py</a></fo
nt></td></tr></table> |
| 12 <p><tt># Copyright (c) 2012 The Chromium Autho
rs. All rights reserved.<br> |
| 13 # Use of this source code is governed by
a BSD-style license that can be<br> |
| 14 # found in the LICENSE file.</tt></p> |
| 15 <p> |
| 16 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 17 <tr bgcolor="#aa55cc"> |
| 18 <td colspan=3 valign=bottom> <br> |
| 19 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big
></font></td></tr> |
| 20 |
| 21 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td>
</td> |
| 22 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=t
op><a href="fnmatch.html">fnmatch</a><br> |
| 23 <a href="inspect.html">inspect</a><br> |
| 24 </td><td width="25%" valign=top><a href="logging.html">logging</a><br> |
| 25 <a href="os.html">os</a><br> |
| 26 </td><td width="25%" valign=top><a href="re.html">re</a><br> |
| 27 <a href="traceback.html">traceback</a><br> |
| 28 </td><td width="25%" valign=top></td></tr></table></td></tr></table><p> |
| 29 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 30 <tr bgcolor="#eeaa77"> |
| 31 <td colspan=3 valign=bottom> <br> |
| 32 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></b
ig></font></td></tr> |
| 33 |
| 34 <tr><td bgcolor="#eeaa77"><tt> </tt></td><td>
</td> |
| 35 <td width="100%"><dl><dt><a name="-DiscoverClasses"><strong>DiscoverClasses</str
ong></a>(start_dir, top_level_dir, base_class, pattern<font color="#909090">='*'
</font>, import_error_should_raise<font color="#909090">=True</font>)</dt><dd><t
t>Discover all classes in |start_dir| which subcla
ss |base_class|.<br> |
| 36 <br> |
| 37 Args:<br> |
| 38 start_dir: The directory to recursively sea
rch.<br> |
| 39 top_level_dir: The top level of the pa
ckage, for importing.<br> |
| 40 base_class: The base class to search f
or.<br> |
| 41 pattern: Unix shell-style pattern for filte
ring the filenames to import.<br> |
| 42 import_error_should_raise: If false, then import
errors are logged but do<br> |
| 43 not stop discovery.<br> |
| 44 <br> |
| 45 Returns:<br> |
| 46 dict of {module_name: class}.</tt></dd></dl> |
| 47 <dl><dt><a name="-DiscoverModules"><strong>DiscoverModules</strong></a>(start_d
ir, top_level_dir, pattern<font color="#909090">='*'</font>, import_error_should
_raise<font color="#909090">=True</font>)</dt><dd><tt>Discover all mod
ules in |start_dir| which match |pattern|.<br> |
| 48 <br> |
| 49 Args:<br> |
| 50 start_dir: The directory to recursively sea
rch.<br> |
| 51 top_level_dir: The top level of the pa
ckage, for importing.<br> |
| 52 pattern: Unix shell-style pattern for filte
ring the filenames to import.<br> |
| 53 import_error_should_raise: If false, then import
errors are logged but do<br> |
| 54 not stop discovery.<br> |
| 55 <br> |
| 56 Returns:<br> |
| 57 list of modules.</tt></dd></dl> |
| 58 </td></tr></table> |
| 59 </body></html> |
| OLD | NEW |