В репе конфиг не нужен
This commit is contained in:
@@ -1,5 +0,0 @@
|
|||||||
[DB]
|
|
||||||
host = db
|
|
||||||
port = 27017
|
|
||||||
name = pycms
|
|
||||||
|
|
||||||
1
main.py
1
main.py
@@ -38,6 +38,7 @@ 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'):
|
||||||
|
|||||||
Reference in New Issue
Block a user