Revert "В репе конфиг не нужен"
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Все пошло не так
This reverts commit 0ba3b5f037
.
This commit is contained in:
parent
94a626e7f1
commit
66d68701c2
5
config.ini
Normal file
5
config.ini
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[DB]
|
||||||
|
host = db
|
||||||
|
port = 27017
|
||||||
|
name = pycms
|
||||||
|
|
1
main.py
1
main.py
@ -38,7 +38,6 @@ class Config:
|
|||||||
"""
|
"""
|
||||||
Read config file, if not exists - call self.createConfig()
|
Read config file, if not exists - call self.createConfig()
|
||||||
"""
|
"""
|
||||||
# TODO: Досоздавать недостающие ключи
|
|
||||||
import configparser
|
import configparser
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
if not config.read('config.ini'):
|
if not config.read('config.ini'):
|
||||||
|
Loading…
Reference in New Issue
Block a user