OSDN Git Service

improve installer.
[rec10/rec10-git.git] / rec10 / trunk / src / install.py
index 62ee46c..9374f37 100644 (file)
@@ -241,14 +241,14 @@ def getConf(useBeforeConf,Confpath,dbsection,key,defaultstr):
         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