scientific-programming-exer.../exam/ex01/cfg.py
2019-02-25 14:23:09 +01:00

14 lines
273 B
Python

config = {
"use_sqlite": False
, "mysql_server": "172.17.0.2"
, "mysql_user": "wikipedia"
, "mysql_password": "wikipediastuff"
, "mysql_database": "wikipedia_link_db"
}
if(config["use_sqlite"]):
config["sql_method"] = "sqlite"
else:
config["sql_method"] = "mysql"