Rclconfig: fix import for dynconf
This commit is contained in:
parent
478739f1e7
commit
e802db5d96
@ -12,7 +12,7 @@ import conftree
|
|||||||
|
|
||||||
class RclDynConf:
|
class RclDynConf:
|
||||||
def __init__(self, fname):
|
def __init__(self, fname):
|
||||||
self.data = ConfSimple(fname)
|
self.data = conftree.ConfSimple(fname)
|
||||||
|
|
||||||
def getStringList(self, sk):
|
def getStringList(self, sk):
|
||||||
nms = self.data.getNames(sk)
|
nms = self.data.getNames(sk)
|
||||||
@ -95,6 +95,6 @@ class RclExtraDbs:
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
config = RclConfig()
|
config = RclConfig()
|
||||||
print(config.getConfParam("topdirs"))
|
print("topdirs = %s" % config.getConfParam("topdirs"))
|
||||||
extradbs = RclExtraDbs(config)
|
extradbs = RclExtraDbs(config)
|
||||||
print(extradbs.getActDbs())
|
print(extradbs.getActDbs())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user