1

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).

Roman
  • 61,962
  • 88
  • 232
  • 324

2 Answers2

1

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.

http://docs.python.org/library/configparser.html

user590028
  • 10,743
  • 3
  • 34
  • 55
0

It seems to be you are looking for the same discussed here.

Properties file in python (similar to Java Properties)

Community
  • 1
  • 1
Sivasubramaniam Arunachalam
  • 7,296
  • 15
  • 77
  • 129