def METHOD_NAME(self, text, searchphrase, io=None):
    """Make dialog visible on top of others and ready to use.
    Extend the SearchDialogBase open() to set the initial value
    for globvar.
    Args:
        text: Multicall object containing the text information.
        searchphrase: String phrase to search.
        io: iomenu.IOBinding instance containing file path.
    """
    SearchDialogBase.METHOD_NAME(self, text, searchphrase)
    if io:
        path = io.filename or ""
    else:
        path = ""
    dir, base = os.path.split(path)
    head, tail = os.path.splitext(base)
    if not tail:
        tail = ".py"
    self.globvar.set(os.path.join(dir, "*" + tail))