def getInterpretPlugin(fileName):
 importPluginFileNames = getImportPluginFileNames()
 for importPluginFileName in importPluginFileNames:
  fileTypeDot = ('.' + importPluginFileName)
  if (fileName[(- len(fileTypeDot)):].lower() == fileTypeDot):
   importPluginsDirectoryPath = getPluginsDirectoryPath()
   pluginModule = archive.getModuleWithDirectoryPath(importPluginsDirectoryPath, importPluginFileName)
   if (pluginModule != None):
    return pluginModule
 print ('Could not find plugin to handle ' + fileName)
 return None

def getInterpretPlugin ( fileName ) : importPluginFileNames = getImportPluginFileNames ( ) for importPluginFileName in importPluginFileNames : fileTypeDot = ( '.' + importPluginFileName ) if ( fileName [ ( - len ( fileTypeDot ) ) : ] . lower ( ) == fileTypeDot ) : importPluginsDirectoryPath = getPluginsDirectoryPath ( ) pluginModule = archive . getModuleWithDirectoryPath ( importPluginsDirectoryPath , importPluginFileName ) if ( pluginModule != None ) : return pluginModule print ( 'Could not find plugin to handle ' + fileName ) return None
get the interpret plugin for the file .