Hack Forums
[Python] Quick help? No console window - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] Quick help? No console window (/showthread.php?tid=5890833)



Quick help? No console window - zioncorp - Oct 1, 2018

Hi everyone so I have written a script in python that steals and decrypts cookies from google chrome on windows, but I am having one problem...I renamed my script to script.pyw and than compiled to executable but I am still getting a really quick console window opening and closing...How can I prevent this. Is there something I can write in my script to keep this from happening? I call the following modules os, shutil, sqlite3, and win32crypt I think it might be the os module that is causing this to happen... I only use the the getenv from os so it is needed.....thanks for any help


RE: Quick help? No console window - HFDone - Oct 2, 2018

https://stackoverflow.com/questions/764631/how-to-hide-console-window-in-python/15148338


RE: Quick help? No console window - Infamia - Oct 2, 2018

run it from command prompt to debug the exception being raised, it's either that or the program is starting/finishing properly and there are no inputs to pause the command prompt from exiting.


RE: Quick help? No console window - zioncorp - Nov 23, 2018

I just want the command prompt to not show or pop up at all....I need to run my program in the background as a standalone executable.


RE: Quick help? No console window - Mouse❤️ - Nov 23, 2018

Did you make sure it's running with pythonw.exe and not python.exe. Iirc, that can matter.


RE: Quick help? No console window - LouisXV - Dec 28, 2018

(Oct 1, 2018 07:25 PM)zioncorp Wrote:  Hi everyone so I have written a script in python that steals and decrypts cookies from google chrome on windows, but I am having one problem...I renamed my script to script.pyw and than compiled to executable but I am still getting a really quick console window opening and closing...How can I prevent this. Is there something I can write in my script to keep this from happening? I call the following modules os, shutil, sqlite3, and win32crypt I think it might be the os module that is causing this to happen... I only use the the getenv from os so it is needed.....thanks for any help

compile it to an exe with no console using eg: Pyinstaller which give you that option