コード例 #1
0
ファイル: main.py プロジェクト: wdanilo/pluginmate
pluginmate.env.push('myenv2')

b = B()
b.disable()
print('--------------')

e = ExtensionPoint(ITest)


pluginmate.env.pop()

print(e.services())

pluginmate.env.pop()

print (pluginmate.env('myenv'))


#'''



'''
@interface
class IOptionManager:
    pass

@implements(IOptionManager)
class OptionMager:
    def __init__(self):
        self.__values = defaultdict(dict)
コード例 #2
0
ファイル: extensionPoint.py プロジェクト: wdanilo/pluginmate
 def __init__(self, interface):
     self.__interface = interface
     self.__env = pluginmate.env()