It used to be that the locations of files were relative to the current working directory. The previous fixes I attempted depended on setting that current working directory. But wait a minute... That's a bit like storing the CWD in a variable, isn't it?
So now the current working directory is found using the tried-and-true sys.argv method and stored in a variable to be accessed by the rest of the code. Since the CWD is never changed, pyinstaller doesn't get confused.
Another fix!
It used to be that the locations of files were relative to the current working directory. The previous fixes I attempted depended on setting that current working directory. But wait a minute... That's a bit like storing the CWD in a variable, isn't it?
So now the current working directory is found using the tried-and-true sys.argv method and stored in a variable to be accessed by the rest of the code. Since the CWD is never changed, pyinstaller doesn't get confused.