I am trying to run an exe file from the python console in QGIS.

my_aplication.exe is a script made in Python3.4 and 'compiled' to windows exe file

import os

exit_status = 1

But it does not works

How can I do that ?

  • 1
    it is running, but returning an exit code. You won't see any stdout/stderr messages this way. Have you tried running it standalone from cmd/Powershell to see what the error is? You might want to consider using subprocess library if you actually want to read the output of your exe. – Steven Kay Aug 10 '15 at 17:43
  • import os import sys os.system(r'C:\Python34\my_application.exe' ) but only load a part of it. Neither icons, no pics loaded and the application only shows the main_window and the radio_buttons. – kamome Aug 10 '15 at 18:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.