How can I assign user parameters via a file?
I have a large number of parameters and they all need to be pre-assigned. However, the content of the parameters can change. Therefore a variable solution is needed
Question
How can I assign user parameters via a file?
I have a large number of parameters and they all need to be pre-assigned. However, the content of the parameters can change. Therefore a variable solution is needed
How can I assign user parameters via a file?
I have a large number of parameters and they all need to be pre-assigned. However, the content of the parameters can change. Therefore a variable solution is needed
Thank you for the quick reply. Das Script works nice. But now I have a new problem.
Sorry, I am just a beginner. When I pass words with umlauts (ä, ü, ö etc.) as values, they are not displayed correctly. Also an AttributeEncoder does not translate the values to UTF8.
Do you have a solution here too. Thank for your help.
Thank you for the quick reply. Das Script works nice. But now I have a new problem.
Sorry, I am just a beginner. When I pass words with umlauts (ä, ü, ö etc.) as values, they are not displayed correctly. Also an AttributeEncoder does not translate the values to UTF8.
Do you have a solution here too. Thank for your help.
Ah encoding, can you try if the following code works for you?
import configparser config = configparser.ConfigParser() with open(r'C:\TMP\FmeConfig.ini', encoding='utf-8') as f: config.read_file(f) return config.get('Section1', 'Setting1')