I have a python file that is simple and opens up webpages from a text file. It is supposed to work and even works in visual studios. I decided to turn it into a exe file using pyinstaller. It outputted a exe file just fine and I opened it but it did nothing and closed right after I opened it.
I used Python 3 and downloaded the pyinstaller inside of Anaconda. Thank you
My code:
import webbrowser
print('Welcome to my project')
webfile = open('webfile.txt', 'r')
for lines in webfile:
webbrowser.open(lines)
k = input('Press Enter to Exit')