'Look for instances of
require File.dirname(__FILE__) + <string> and map to
@<string>'

def _try_loading_relative_library(self, tok, curr_node):

    seq_start_line = tok['start_line']
    if ((not self.classifier.is_identifier(tok)) or (tok['text'] != 'File')):
        return
    tok = self.tokenizer.get_next_token()
    if (not self.classifier.is_operator(tok, '.')):
        return
    tok = self.tokenizer.get_next_token()
    if ((not self.classifier.is_identifier(tok)) or (tok['text'] != 'dirname')):
        return
    tok = self.tokenizer.get_next_token()
    if (not self.classifier.is_operator(tok, '(')):
        return
    tok = self.tokenizer.get_next_token()
    if ((not self.classifier.is_identifier(tok, True)) or (tok['text'] != '__FILE__')):
        return
    tok = self.tokenizer.get_next_token()
    if (not self.classifier.is_operator(tok, ')')):
        return
    tok = self.tokenizer.get_next_token()
    if (not self.classifier.is_operator(tok, '+')):
        return
    tok = self.tokenizer.get_next_token()
    if self.classifier.is_string(tok):
        curr_node.imports.append(Name_LineNum(self._create_relative_libname(tok), seq_start_line))
