コード例 #1
0
    def load_actual_plugin(self, gui):
        # so the sys.path was modified while loading the plug impl.
        with self:

            # Make sure the fanficfare module is available globally
            # under its simple name, -- This is the only reason other
            # plugin files can import fanficfare instead of
            # calibre_plugins.fanficfare_plugin.fanficfare.
            #
            # Added specifically for the benefit of
            # eli-schwartz/eschwartz's Arch Linux distro that wants to
            # package FFF plugin outside Calibre.
            import fanficfare

            return InterfaceActionBase.load_actual_plugin(self, gui)
コード例 #2
0
ファイル: __init__.py プロジェクト: besnef/FanFicFare
 def load_actual_plugin(self, gui):
     with self: # so the sys.path was modified while loading the
                # plug impl.
         return InterfaceActionBase.load_actual_plugin(self,gui)
コード例 #3
0
 def load_actual_plugin(self, gui):
     with self:  # so the sys.path was modified while loading the
         # plug impl.
         return InterfaceActionBase.load_actual_plugin(self, gui)