Rename name=>db_name and path=>data_folder.
This commit is contained in:
Родитель
7dd7d5d4fc
Коммит
7ebb5418b2
|
@ -2,9 +2,9 @@
|
|||
host = localhost
|
||||
user = ???
|
||||
pass = ???
|
||||
name = ???
|
||||
db_name = ???
|
||||
|
||||
[general]
|
||||
path = /home/awfy
|
||||
data_folder = /home/awfy
|
||||
machine_timeout = 480 ; 8 hours (480 minutes)
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ def Startup():
|
|||
host = config.get('mysql', 'host')
|
||||
user = config.get('mysql', 'user')
|
||||
pw = config.get('mysql', 'pass')
|
||||
name = config.get('mysql', 'name')
|
||||
name = config.get('mysql', 'db_name')
|
||||
|
||||
db = DB(host, user, pw, name)
|
||||
c = db.cursor()
|
||||
|
@ -67,7 +67,7 @@ def Startup():
|
|||
row = c.fetchone()
|
||||
version = int(row[0])
|
||||
|
||||
path = config.get('general', 'path')
|
||||
path = config.get('general', 'data_folder')
|
||||
|
||||
Startup()
|
||||
|
||||
|
|
|
@ -27,8 +27,8 @@ class Config {
|
|||
$this->mysql_host = $config_array["mysql"]["host"];
|
||||
$this->mysql_username = $config_array["mysql"]["user"];
|
||||
$this->mysql_password = $config_array["mysql"]["pass"];
|
||||
$this->mysql_db_name = $config_array["mysql"]["name"];
|
||||
$this->data_folder = $config_array["general"]["path"];
|
||||
$this->mysql_db_name = $config_array["mysql"]["db_name"];
|
||||
$this->data_folder = $config_array["general"]["data_folder"];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче