سؤال

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?

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top