Read layers list from ini file (colons problem)

Hello everybody!

I am trying to read an ini file where I previously saved a list of layers in a section:

Layer 01
Layer 04::subLayer04::subSubLayer04

the rs.GetSettings is not an option because it’s reading colons as delimiters between keys and values.

does anyone have a ready solution?

Just read the file in like a normal text file then parse the lines to create the layer structure?

Yes is the simplest solution in the end,:

with open(“your ini file”) as f:
while ‘[layer_selection]’ not in f.readline():
print (