First time here? Check out the FAQ!

Revision history  [back]

It may work to create a shell script with the following contents:

sudo python3 "$@"

Then make that executable on disk with 'chmod +x ' and set it as the Python Executable in Wing's Project Properties (accessed from the Project menu).

This will not send in the environment set in Project Properties or inherited by Wing, and that may not be wanted anyway. If it is, you can use this instead:

sudo -E python3 "$@"

Also, of course, you may want just 'python' and not 'python3' or perhaps the full path of the Python you wish to run.

It may work to create a shell script with the following contents:

 sudo python3 "$@"

Then make that executable on disk with 'chmod +x ' and set it as the Python Executable in Wing's Project Properties (accessed from the Project menu).

This will not send in the environment set in Project Properties or inherited by Wing, and that may not be wanted anyway. If it is, you can use this instead:

sudo -E python3 "$@"

Also, of course, you may want just 'python' and not 'python3' or perhaps the full path of the Python you wish to run.