-1

I wrote a script , this script modify some files on system. I used this lib with no console option but when i run script some terminals show up for 1 second and then they will hide.

I used Os.system() in my code.

What should i do to run the script completely silent?

1 Answers1

0

If you name your files with the ".pyw" extension, then windows will execute them with the pythonw.exe interpreter. This will not open the cmd console for running your script.

Compo
  • 34,184
  • 4
  • 22
  • 36
Paolo Mossini
  • 1,022
  • 2
  • 13
  • 22