I have a python script (.py) which runs normally on the console. When I try running the script using pythonw by changing the extension to (.pyw), it stopped working. My guess is that the print statements are causing pythonw to die based on results returned from Google Search.
Is there a convenient way to disable the print statements so that pythonw can run? I have too many print statements in the script. Changing them one by one is not practical, particularly if I want to switch back to using normal python.
Thanks.