I have a wrapper file that is reading a JSON file into a dictionary.
I am using the os.system("command") command to run a C++ code in this python file.
The C++ code takes command line inputs which are key values in the parsed dictionary.
How can i pass a python variable as a command line input for a C++ code using the os.system("command") instruction?
"--key1=value1 --key2=value2 ..."etc. Then append that to the string containing the command. The actual format of the string depends on what the command you want to call can handle of course.