My application was 100% developed in pure Python. It was very convenient and convenient for me to create a configuration file with the extension .py , and not just load it into each code. Something like that:
ENV = 'Dev' def get_settings(): return eval(ENV) class Dev(): ''' Development Settings '''
And than in my code, I just import this file and use the settings, so I have one file that is easily managed and which contains all the parameters that I need.
Recently, I had to move part of my Java code. And now I'm struggling with configurations.
Question:
What is the โstandardโ way to create a configuration that will be easily accessible from both languages? (My Java skills are very limited, if you can give me a fifth example in Java, that would be great)
source share