def disable_plugin(self, pname):
        self.logger.info("disabling plugin '%s'" % (pname))
        if (pname in sys.modules):
            del(sys.modules[pname])
        if (pname in self.pluginmods):
            del(self.pluginmods[pname])
        if (pname in self.pluginobjs):
            del(self.pluginobjs[pname])
        if self.file_watcher != None:
            self.file_watcher.remove_item("%s.py" % pname)
        if self.auto_delete_class_files == True:
            self.logger.debug("  testing for class file : %s" % (os.path.join("%s" % self.dname, "%s$py.class" % pname)))
            if (os.path.isfile(os.path.join("%s" % self.dname, "%s$py.class" % pname))):
                self.logger.debug("  disable_plugin removing stale .class file for disabled plugin '%s'" % pname)
                try:
                    os.remove(os.path.join("%s" % self.dname, "%s$py.class" % pname))
                except __HOLE__, e:
                    self.logger.debug("failed to remove stale file %s$py.class but don't really care" % pname)
dataset/ETHPy150Open zynga/hiccup/hiccup/PluginManager.py/PluginManager.disable_plugin