简体   繁体   中英

What's the best way to manipulate Boost INFO file in Python

I have a C++ program which read a Boost INFO file as a configuration file, and now I'm planning to dev a python script to manipulate those conf files. What's the best way to do it?

I can't find any existing module in python doing that, actually when I type Boost INFO and Python in Google, most of the results are not so relevant. I haven't even found a full syntax description of INFO.

And it's seems too much work to dev a parser in python or C++ extension for python to achieve this as I'm new to python.

Thanks in advance, guys.

This question is very old, but I needed this as well, so I wrote a parser class. It is available here . There is no error handling, but as long as your config file has correct syntax, it should be a good starting point.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM