Subsystem & OS
The subsystem and OS module are almost identical but can be used in many different cases and both are better for different things. Starting off with the most basic function from the OS module we have the system function. The system function is made to execute commands in the Windows command line from Python. To use the function simply do the following:
using the function will run the command that you include inside of the parenthesis.
Importing the subsystem module will allow you to do the same thing but with more options about handling the output
Last updated
Was this helpful?