def parse_filename(filename):
 filename = parse_string(filename)
 result = resource_find(filename)
 if (result is None):
  Logger.error(('Resource: unable to find <%s>' % filename))
 return (result or filename)

def parse_filename ( filename ) : filename = parse_string ( filename ) result = resource_find ( filename ) if ( result is None ) : Logger . error ( ( 'Resource: unable to find <%s>' % filename ) ) return ( result or filename )
parse a filename and search for it using resource_find() .