示例#1
0
    def __init__(self, fname):
        CfgCreator.__init__(self, fname)
        StructFile.__init__(self, fname)

        pubkey_path = os.path.dirname(self.name) + ".pub"
        pubkey_name = os.path.join(pubkey_path, os.path.basename(pubkey_path))
        self.pubkey_creator = CfgPublicKeyCreator(pubkey_name)
        self.setup = get_option_parser()
        self.cmd = Executor()
示例#2
0
 def __init__(self, fname):
     XMLCfgCreator.__init__(self, fname)
     pubkey_path = os.path.dirname(self.name) + ".pub"
     pubkey_name = os.path.join(pubkey_path, os.path.basename(pubkey_path))
     self.pubkey_creator = CfgPublicKeyCreator(pubkey_name)
     self.cmd = Executor()