python yapsy不工作

时间:2016-03-27 21:05:40

标签: python-2.7 plugins

使用python yapsy(AngularJS Is this a “Deferred Antipattern”?

的插件管理器时遇到问题

我制作了一个包含3个文件的测试项目:

test.py

from yapsy.IPlugin import IPlugin

class Plugin(IPlugin):
    def print_name(self):
        print 'Plugin one'

插件/ plugin.py

[Core]
Name = Magic_plugin
Module = plugin

[Documentation]
Author = Mario
Version = 1.0

插件/ plugin.yapsy-插件

test.py

但是当我开始No handlers could be found for logger "yapsy" 时,它说:

String[][] board = new String[x][y];
// you inserted some data into board
setBoardsAll(board); // you added the board
// you cleared and/or re-inserted new data to
// the same board without creating another 2D array.
setBoardsAll(board);

有什么想法吗?我试图使用记录器模块获取记录器,但它不起作用。

感谢。

1 个答案:

答案 0 :(得分:0)

这对我有用:

from yapsy.IPlugin import IPlugin

class Plugin(IPlugin):
    def print_name(self):
        print 'Plugin one'

注意课后的':'