Me and my sister made a program using Qt Framework in c++ and when i click in a button this program should launch another program(web crawler) made in python(she preferred to do using this language). The problem is when i click on that button i get the following error message:
c:\Python34\python.exe is not recognized as an internal or external command, operable program or batch file.
How we call it in my c++ code.
void Historic::on_pushButton_clicked( ) {
system("c:\Python34\python.exe d:\Programming\Python\Pycharm\test.py");
}
void Historic::on_pushButton_clicked( ) {
system("c:\Python34\python.exe d:\Programming\Python\Pycharm\test.py");
}
To copy to clipboard, switch view to plain text mode
Python code just to test:
fw = open(r'd:\Programming\Python\Pycharm\test.txt', 'w')
fw.write("working fine")
fw.close( )
fw = open(r'd:\Programming\Python\Pycharm\test.txt', 'w')
fw.write("working fine")
fw.close( )
To copy to clipboard, switch view to plain text mode
What is wrong? How can we fix it? We are using Windows 7-64bit.
Bookmarks