python - Use pythonic config file in C++ -
i'm thinking making "pythonic" config file existing static config files can scripted i.e,:
setting1=1 setting2=foo
...and in c++ code read setting1 , setting2.
would nice able evaluate setting file like:
setting1=1 setting2='foo%d' % setting1
...then beingness able read setting1 1 , setting2 "foo1"
was thinking using python.h , executing config file python script , somehow iterating through local variables , pulling them out? ideas on how can accomplished?
python c++ config
No comments:
Post a Comment