Added code
This commit is contained in:
11
modules/config/config.py
Normal file
11
modules/config/config.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import json
|
||||
|
||||
try:
|
||||
config = json.load(open('config.json', encoding='utf-8'))
|
||||
except:
|
||||
config = {
|
||||
"charset": "abcdefghijklmnopqrstuvwxyz"
|
||||
}
|
||||
json.dump(config, open('config.json', 'w', encoding='utf-8'), indent=4)
|
||||
|
||||
charset = ''.join(sorted(list(set(' ' + config['charset']))))
|
||||
Reference in New Issue
Block a user