Home » Support » Index of All Documentation » Wing IDE Reference Manual »

8. OS Commands Tool

Wing IDE Professional includes an OS Commands tool that can be used to execute and interact with external commands provided by the OS or by other software, and to execute files outside of the debugger.

This is used for the Execute items in the Debug menu and Project context menu and to run any build command configured in Project or File Properties. It can also be used for other purposes such as integrating external commands into Wing, starting code that is debugged using wingdbstub, and so forth.

Adding and Editing Commands

Whenever a file is executed outside of the debugger, or when a build command is configured, these are added automatically to the OS Commands tool.

Additional items can be added with the Options menu's New Toolbox Command item, and any existing items can be edited or removed with the Edit and Remove items here. For details, see OS Command Properties.

Executing Commands

The Options menu also includes items for starting, terminating, or restarting a command, clearing the execution console, and selecting whether consoles should auto-clear each time the process is started or restarted.

For Python files, it is also possible to specify that the Python interpreter should be left active and at a prompt after the file is executed. This is done with the Python Prompt after Execution item in the Options menu.

The area below the popup menu at the top of the OS Commands tool is the console where commands are executed, where output is shown and where input can be entered for sending to the sub-process. Use the popup menu to switch between multiple running processes, or add multiple instances of the OS Commands tool to view them concurrently. The console provides a context menu (right click) for controlling the process, copy/pasting, and clearing or saving a copy of the output to a file.

Toolbox

The OS Commands Toolbox is hidden by default but can be shown with the Show Toolbox item in the Options menu. This contains the same items in the popup menu at the top of the OS Commands tool, but can be convenient for editing or removing multiple items, or quickly executing a series of commands. Right click on the list for available actions, or middle click or double click on the list to execute items.

« 7.1. Python Shell OptionsTable of Contents8.0. OS Command Properties »

Section Contents

8.0. OS Command Properties