1 # -*- coding: utf-8 -*-
4 2013/12/20 written by kei9
9 __metaclass__ = singleton.Singleton
15 class Singleton(type):
16 def __init__(self, *args):
17 type.__init__(self, *args)
20 def __call__(self, *args):
21 if self._instance is None :
22 self._instance = type.__call__(self, *args)