I am a new Python fan. I tried calling a python script from C ++ like this (in Raspberry Pi).
std::string pythonCommand = "python Callee.py \""+a+"\" "+b;
int res = system(pythonCommand.c_str());
after launch i got this.
python: can't open file 'Callee.py': [Errno 2] No such file or directory
But I can run Callee.py with the command line successfully and both files are stored in the same directory.
What did I miss?
source
share