To avoid below error
python: can't open file 'factorial.py': [Errno 2] No such file or directory
I have changed this string with direct path to python file.
std::string command("python factorial.py");
after this changes error change as below
Traceback (most recent call last):
File "/usr/lib/mysql/plugin/factorial.py", line 31, in <module>
main()
File "/usr/lib/mysql/plugin/factorial.py", line 18, in main
num = int(num)
ValueError: invalid literal for int() with base 10: '\x01'
Hi :)
To avoid below error
python: can't open file 'factorial.py': [Errno 2] No such file or directory
I have changed this string with direct path to python file.
std::string command("python factorial.py");
after this changes error change as below