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
  • 64,384
  • 92
  • 238
  • 332

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
  • 11,364
  • 3
  • 40
  • 57
0

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

Properties file in python (similar to Java Properties)

Community
  • 1
  • 1
Siva Arunachalam
  • 7,582
  • 15
  • 79
  • 132