Why does my program work with a .py extension but not with a .pyw extension?

后端 未结 1 1301
北荒
北荒 2021-01-18 08:29

I have a script that converts Google Earth .kml / .kmz files to shapefiles with a simple GUI interface written in Tkinter.

My problem is t

相关标签:
1条回答
  • 2021-01-18 08:57

    .pyw files are run differently than .py files -- they are associated with a different interpreter, pythonw.exe instead of python.exe, which doesn't have a console associated with it.

    According to some sources, including this old mailing list thread some operations don't work without a console.

    Without seeing the exact script, we can't know exactly is causing the problem for pythonw.

    0 讨论(0)
提交回复
热议问题