How to get Python and see if there is a file that it needs, and if not create it?
Basically, I want Python to look for the name of my file KEEP-IMPORTANT.txt , but when I create my application using py2app , it does not work because it does not have a file. When I try to make a file, it will not work (I think because python should generate it).
I want Python to check if the file exists so that if it does, it does not generate the file, otherwise it does.
source share