File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -107,12 +107,11 @@ This config file as a json would be something like:
107107The instance of Config Class:
108108
109109``` python
110- from pyconfigparser import Configparser , ConfigError
110+ from pyconfigparser import configparser , ConfigError
111111import logging
112112
113113try :
114- config = Configparser.get_config(
115- SCHEMA_CONFIG ) # <- Here I'm using that SCHEMA_CONFIG we had declared, and the dir file default value is being used
114+ config = configparser.get_config(SCHEMA_CONFIG ) # <- Here I'm using that SCHEMA_CONFIG we had declared, and the dir file default value is being used
116115except ConfigError as e:
117116 print (e)
118117 exit ()
@@ -150,17 +149,17 @@ Since you've already created the first Config's instance this instance will be c
150149so after this first creation you can just invoke Config.get_config()
151150
152151``` python
153- from pyconfigparser import Configparser
152+ from pyconfigparser import configparser
154153
155- config = Configparser .get_config() # At this point you already have the configuration properties in your config object
154+ config = configparser .get_config() # At this point you already have the configuration properties in your config object
156155```
157156
158157You can also disable the action to cache the instance config
159158
160159``` python
161- from pyconfigparser import Configparser
160+ from pyconfigparser import configparser
162161
163- Configparser .hold_an_instance = False
162+ configparser .hold_an_instance = False
164163```
165164
166165
You can’t perform that action at this time.
0 commit comments