Python Forum
pyw IDLE =/= Non IDLE - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: pyw IDLE =/= Non IDLE (/thread-36054.html)



pyw IDLE =/= Non IDLE - kucingkembar - Jan-13-2022

hi, is there any "special treatment" for .pyw?
i don't know why if I run pyw file via IDLE, then press F5, the program run normal,
but
when run like exe (double click), some script is not working,
any idea why?

Edit: after some research,
maybe it about "sys.stderr.write",
maybe, I don't know


RE: pyw IDLE =/= Non IDLE - deanhystad - Jan-13-2022

The main difference I've seen between running a program in IDLE and running it with Python is that IDLE doesn't quit when the program reaches the end.

Can you describe the difference you see running your program the two ways. Can you post your program?


RE: pyw IDLE =/= Non IDLE - kucingkembar - Jan-13-2022

@deanhystad
thank you for the reply,
my program is too big and when I try to split it, the code seems fine,


RE: pyw IDLE =/= Non IDLE - kucingkembar - Jan-13-2022

i think this is the culprit, but i still dont know what to do
import transformers
print(transformers.__version__)
input("press any key to continue...")
the result in IDLE:
4.15.0
press any key to continue...