How to resume program (or exit) after opening webbrowser?
问题 I'm making a small Python program, which calls the webbrowser module to open a URL. Opening the URL works wonderfully. My problem is that once this line of code is reached, the problem is unresponsive. How do I get the program to proceed past this line of code and continue to execute? Below the problematic line is the problematic line, in context: if viewinbrowser == "y": print "I can definitely do that. Loading URL now!" webbrowser.open_new(url) print "Exiting..." sys.exit() The program does