original_docstring: The function should look for all possible files in the 'dir' that 
          MATLAB would allow to call. This includes
              - .m, .dll, .mex ???? FIXME
          
          If the name is a directory the directory should be searched for all
          these files. If there are any importable files they should be loaded
          and presented to the importer behind a single module called 'name'.
          
docstring: The function should look for all possible files in the 'dir' that
  MATLAB would allow to call.
  
  If the name is a directory the directory should be searched for all
  these files. If there are any importable files they should be loaded
  and presented to the importer behind a single module called 'name'.
docstring_tokens: The function should look for all possible files in the ' dir ' that MATLAB would allow to call . If the name is a directory the directory should be searched for all these files . If there are any importable files they should be loaded and presented to the importer behind a single module called ' name ' .
code: def match_mfile(self, name, dir):
          """The function should look for all possible files in the 'dir' that 
          MATLAB would allow to call. This includes
              - .m, .dll, .mex ???? FIXME
          
          If the name is a directory the directory should be searched for all
          these files. If there are any importable files they should be loaded
          and presented to the importer behind a single module called 'name'.
          """
          path = join(dir, name)
          if exists(path) and isdir(path):
              # are there any mfiles
              mfiles = get_mfiles(path)
              if mfiles:
                  # we have to load the mfiles ourselves create a module
                  # with all the mfiles wrapped
                  #from warnings import warn
                  #warn("Importing directories not implemented yet!")
                  return path
          elif exists(path+'.m'):
              return path+'.m'
code_tokens: def match_mfile ( self , name , dir ) : path = join ( dir , name ) if exists ( path ) and isdir ( path ) : mfiles = get_mfiles ( path ) if mfiles : return path elif exists ( path + '.m' ) : return path + '.m'
short_docstring: The function should look for all possible files in the 'dir' that
  MATLAB would allow to call.
short_docstring_tokens: The function should look for all possible files in the ' dir ' that MATLAB would allow to call .
comment: """The function should look for all possible files in the 'dir' that 
          MATLAB would allow to call. This includes
              - .m, .dll, .mex ???? FIXME
          
          If the name is a directory the directory should be searched for all
          these files. If there are any importable files they should be loaded
          and presented to the importer behind a single module called 'name'.
          """$SEP$# are there any mfiles
  $SEP$# we have to load the mfiles ourselves create a module
  $SEP$# with all the mfiles wrapped
  $SEP$#from warnings import warn
  $SEP$#warn("Importing directories not implemented yet!")
  