In Java, I can use .properties
file for specifying some program parameters (like data files location).
What correspondent concept is used in Python? (If it's version-dependent, I'm interested in a solution for Python 2.5).
In Java, I can use .properties
file for specifying some program parameters (like data files location).
What correspondent concept is used in Python? (If it's version-dependent, I'm interested in a solution for Python 2.5).
I think you're interested in the ConfigParser package. It has the advantage of being part of the standard library which means it cross-platform, and available everywhere.
It seems to be you are looking for the same discussed here.