Passing dictionary values in python as command line inputs to c++ code -


i have wrapper file reading json file dictionary. using os.system("command") command run c++ code in python file. c++ code takes command line inputs key values in parsed dictionary.

how can pass python variable command line input c++ code using os.system("command") instruction?

you can't unless relax 1 of restrictions.

relax python dict requirement: command line has defined text arguments interface, can handle info. can pass json filename, str representation of dict, or pass name-value pairs command line arguments.

relax system call requirement: rather building executable c++ code, can build python c++ extension. c++ code can export functions take python dict.

relax c++ requirement: code in python.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -