I am trying to store the settings of my python program(that is used to configure the input and output pins of MCP23017)... I know that there is something called the ConfigParser module I could use to achieve this.. But I don't really understand what the 'example.ini' refers to in this example(first one in the link)? Is it the file that stores the settings? If yes then where is the program whose settings have to be stored being reffered to here?
Update:: I created a config file .. But the File has a variable as follows that contains the i2cset.. x= ('i2cset', '-y', '0', '0x14', '0x20', '0xFF') But when I try to read it in my main program it gives me a error saying Error: /bin/sh: 1: i 2 c s e t : not found
What am i doing wrong?
Any suggestion is welcome, Thank you in advance, Kind Regards, Namita.