I have made a very basic Tkinter text editor app. I don't think my code will be necessary for this question as I have written no code related to this question yet. I converted my App to a .exe file using Pyinstaller.
For the most part it works, but when I try to use "Open With" of a file to open it with my App, it gives me an error, "Unable to execute CodePad" (CodePad is the name of my app). I experienced this error in the early days of this app's development when it didn't work. But now, it does work when I click on it, but doesn't when I use "Open With". Note: The "Open" button in my file menu still works.