title: Yapsy looks at entire file system for plugins
body: <p>I've got an application that uses <a href="http://yapsy.sourceforge.net/" rel="nofollow">YAPSY</a> for our plugin framework. The program specifies a default plugin directory and also lets the user specify a directory as well (which is saved in an XML file):</p>
  
  <pre><code>    # Get the default plugin directory, using XML
      path = os.path.expanduser('~')
      xml = xml_controller.Controller(path + '\.cxvrc.xml')
      xml.load_file()
      xml.get_plugin_directory()
      directory = ["plugins", xml.get_plugin_directory()]
  
      # Load the plugins from the default plugin directory.
      manager = PluginManager()
      manager.setPluginPlaces(directory)
      manager.setPluginInfoExtension('plugin')
      manager.collectPlugins()
  </code></pre>
  
  <p>The problem with this is that it's loading the user's plugins, no matter where they are on their file system. Essentially, it's ignoring the resulting string of the XML file query. Why could this be? An example of what</p>
  
  <pre><code>    xml.get_plugin_directory()
  </code></pre>
  
  <p>returns is a string: "C:\Documents and Settings\achilds". I thought that the collectPlugins() method should check the list of directories that I've supplied in setPluginPlaces(directory).</p>
  
  <p>Any ideas why this finds all plugins on the user's file system (no matter what plugin directory they've specified)?</p>
  
  <p>Thank you</p>