try:
confp = ConfigParser.SafeConfigParser()
confp.read("/etc/rec10.conf")
- tstr=u"["+conf.get(dbsection,key)+u"]:"
+ tstr=u"["+confp.get(dbsection,key)+u"]:"
except:
tstr=defaultstr
tmpconf=raw_input(tstr)
if tmpconf.replace(" ","")=="" and os.path.exists(Confpath) and useBeforeConf==1 :
confp = ConfigParser.SafeConfigParser()
- conf=confp.read("/etc/rec10.conf")
- tmpconf=conf.get(dbsection,key)
+ confp.read("/etc/rec10.conf")
+ tmpconf=confp.get(dbsection,key)
return tmpconf
if __name__ == "__main__":
move()
\ No newline at end of file