scientific-programming-exer.../exam/ex01/cfg.py

14 lines
272 B
Python
Raw Normal View History

2019-02-15 10:09:43 +00:00
config = {
2019-02-25 13:14:55 +00:00
"use_sqlite": True
2019-02-15 10:09:43 +00:00
, "mysql_server": "172.17.0.2"
, "mysql_user": "wikipedia"
, "mysql_password": "wikipediastuff"
2019-02-15 11:46:32 +00:00
, "mysql_database": "wikipedia_link_db"
2019-02-15 10:09:43 +00:00
}
2019-02-25 13:14:55 +00:00
if(config["use_sqlite"]):
config["sql_method"] = "sqlite"
else:
config["sql_method"] = "mysql"