@classmethod<EOL><INDENT>def search(cls, name, lookup=[]):<DEDENT>
if os.path.isfile(name): return name<EOL>for spath in lookup:<EOL><INDENT>fname = os.path.join(spath, name)<EOL>if os.path.isfile(fname):<EOL><INDENT>return fname<EOL><DEDENT>for ext in cls.extensions:<EOL><INDENT>if os.path.isfile('<STR_LIT>' % (fname, ext)):<EOL><INDENT>return '<STR_LIT>' % (fname, ext)<EOL><DEDENT><DEDENT><DEDENT>
Search name in all directories specified in lookup.
        First without, then with common extensions. Return first hit.