parameters: (self, filename)
return_statement: return None
docstring: Helper function for break/clear parsing -- may be overridden.
  
          lookupmodule() translates (possibly incomplete) file or module name
          into an absolute file name.
docstring_summary: Helper function for break/clear parsing -- may be overridden.
docstring_tokens: Helper function for break / clear parsing -- may be overridden .
function: def lookupmodule(self, filename):
          """Helper function for break/clear parsing -- may be overridden.
  
          lookupmodule() translates (possibly incomplete) file or module name
          into an absolute file name.
          """
          if os.path.isabs(filename) and  os.path.exists(filename):
              return filename
          f = os.path.join(sys.path[0], filename)
          if  os.path.exists(f) and self.canonic(f) == self.mainpyfile:
              return f
          root, ext = os.path.splitext(filename)
          if ext == '':
              filename = filename + '.py'
          if os.path.isabs(filename):
              return filename
          for dirname in sys.path:
              while os.path.islink(dirname):
                  dirname = os.readlink(dirname)
              fullname = os.path.join(dirname, filename)
              if os.path.exists(fullname):
                  return fullname
          return None
function_tokens: def lookupmodule ( self , filename ) : if os . path . isabs ( filename ) and os . path . exists ( filename ) : return filename f = os . path . join ( sys . path [ 0 ] , filename ) if os . path . exists ( f ) and self . canonic ( f ) == self . mainpyfile : return f root , ext = os . path . splitext ( filename ) if ext == '' : filename = filename + '.py' if os . path . isabs ( filename ) : return filename for dirname in sys . path : while os . path . islink ( dirname ) : dirname = os . readlink ( dirname ) fullname = os . path . join ( dirname , filename ) if os . path . exists ( fullname ) : return fullname return None