def resource_filename(fn):
 return os.path.join(os.path.dirname(sys.testing_document_filename), 'resources', os.path.splitext(os.path.basename(sys.testing_document_filename))[0], fn)

def resource_filename ( fn ) : return os . path . join ( os . path . dirname ( sys . testing_document_filename ) , 'resources' , os . path . splitext ( os . path . basename ( sys . testing_document_filename ) ) [ 0 ] , fn )
get the absolute filename of a file contained with qutebrowser .