1

I have a program that requires me to call os.execute to run an external program, however, when I do this, the program runs with an empty terminal sitting open in the background, which is quite a pain. I was wondering if there was a way to prevent this?

1 Answer 1

3

Assuming you're on Windows, you can use the winapi library, specifically winapi.execute() which will run an application without popping up a terminal window.

Sign up to request clarification or add additional context in comments.

2 Comments

And on linux? (I tend to make this as multiplatform as possible)
Have you tried :-) ? Ok, executing a command by a system shell does not open a window on Linux.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.