0

I'm trying to run a python script from an elgato streamdeck, the code works properly but everytime i run it through my streamdeck it breifly opens a CMD window. my goal is to run the script "silently" I already changed the .py to a .pyw, which should run it without a window opening, but the problem seems to come from the elgato app

Any thoughts on how i could do that ?

delouisiano
  • 111
  • 2
  • 13
  • I don't think you can "double click" a Python file and not have it try to open cmd. – OneCricketeer Feb 11 '23 at 15:33
  • yeah you can double click an have no window opening (that's what the .pyw is for), try a simple script and save it both as .py and .pyw, you'll know what i mean – delouisiano Feb 11 '23 at 15:42
  • Sure. Perhaps, as you say, the elgato app has its own "script wrapper". For example, calling `python app.pyw` in a `.bat` file, then executing that still should open one cmd window for the batch script – OneCricketeer Feb 11 '23 at 15:52

1 Answers1

1

runing my python script from a .bat file seems to have fix the issue, thx OneCricketeer :)

delouisiano
  • 111
  • 2
  • 13