oop - reading a configuration information only once in Python -


I'm using ConfigParser to read the configuration information stored in a file. I am able to read the content in this subject and use it in other modules. I'm not sure that the configuration file is read every time when I call the config.get (parameter). How can I ensure that the configuration information is read only once and the remainder is read from the cache.

I try to specify the configuration in a variable.

get configVariable = config

Then you can pass the configuration variable as needed in other modules.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -