I\'m using ConfigParser in Python
config.ini is
[general]
name: my_name
base_dir: /home/myhome/exp
exe_dir: ${base_dir}/bin
Here I
In Python 3, you can use ${base_dir}/bin, and the extended interpolation allows you to use variables from other sections. Example:
[Common]
home_dir: /Users
library_dir: /Library
system_dir: /System
macports_dir: /opt/local
[Frameworks]
Python: 3.2
path: ${Common:system_dir}/Library/Frameworks/
[Arthur]
nickname: Two Sheds
last_name: Jackson
my_dir: ${Common:home_dir}/twosheds
my_pictures: ${my_dir}/Pictures
python_dir: ${Frameworks:path}/Python/Versions/${Frameworks:Python}