|
From: Lars L. <la...@mo...> - 2012-04-27 00:13:11
|
Does ConfigObj support C style includes in an ini file? I can't see documentation for such a feature, but I thought I'd ask anyway. Here's more about what I'm looking for: Consider this sample ini: [source] dbhostname=myserver dbname=some-database dbuser=dwight dbpassword=secrets [destination] dbhostname=myserver dbname=some-database dbuser=dwight dbpassword=secrets I'd like a syntax that allows me to not repeat myself if I don't need to: [source] +include /some/path/database-credentials.ini [destination] +include /some/path/database-credentials.ini other users that may want different database/user credentials can write their ini file like my first example. On the other hand, my version can look like the latter because I don't need separate credentials. Or, perhaps there's another way to accomplish the same thing using a different technique? Any help would be appreciated. -K Lars Lohn Mozilla WebTools |