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

16 lines
352 B
Python
Raw Normal View History

2019-02-15 10:09:43 +00:00
config = {
2019-02-27 10:41:44 +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-25 13:43:15 +00:00
, "sqlite_cache_directory": "./cache/"
, "sqlite_cache_name": "Angela_Merkel"
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"