-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
76 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
__all__ = ['config'] | ||
|
||
import configparser | ||
|
||
default_dict = { | ||
'db_type': 'sqlite', | ||
'auto_open_browser': 'yes', | ||
} | ||
|
||
config = configparser.ConfigParser(default_dict) | ||
config.read('config.conf') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# ====================================================== | ||
# 用户自定义配置区 | ||
# ====================================================== | ||
[custom] | ||
# 是否自动打开浏览器 | ||
auto_open_browser = yes | ||
|
||
# 使用数据库类型:`sqlite`(默认)、`mysql` | ||
db_type = sqlite | ||
|
||
# ====================================================== | ||
# 数据库使用配置 | ||
# (除非你知道你在干嘛,否则请勿修改下面代码) | ||
# ====================================================== | ||
[mysql] | ||
mysql_name = 'word_db' | ||
mysql_user = 'word_user' | ||
mysql_password = 'word2020' | ||
mysql_host = 'localhost' | ||
mysql_port = '' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters