Skip to content

Files

Latest commit

 

History

History
19 lines (13 loc) · 613 Bytes

File metadata and controls

19 lines (13 loc) · 613 Bytes

How to use ConfigParser in Python

With this Python module, you can load a separate file with .ini extension. A document repository can also be found in my profile article at Medium.


The first step is to install configparser module on Python:

 pip install configparser 

The second step is to change your .ini file with the variables you need

If you want, you can change the folder where you want to upload your .ini file

config.read(r'EnvVariables.ini')