|
@@ -28,11 +28,6 @@ if __name__ == '__main__':
|
|
|
elif cur_env == 'pro':
|
|
|
cf.read("config-pro.ini")
|
|
|
|
|
|
- options = cf.options("Mysql-1")
|
|
|
- items = cf.items("Mysql-1")
|
|
|
- print(options)
|
|
|
- print(items)
|
|
|
-
|
|
|
host1 = cf.get("Mysql-1", 'host')
|
|
|
port1 = int(cf.get("Mysql-1", 'port'))
|
|
|
db1 = cf.get("Mysql-1", 'db')
|
|
@@ -44,17 +39,6 @@ if __name__ == '__main__':
|
|
|
db2 = cf.get("Mysql-2", 'db')
|
|
|
user2 = cf.get("Mysql-2", 'user')
|
|
|
password2 = cf.get("Mysql-2", 'password')
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
|
|
|
now_str = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()).replace(":","_")
|