I have a pyinstaller executable (pyinstaller -F script.py) and .db file. Both in /home/dev/dist directory. This script can't find .db file despite it locates in the same directory. I figured out that script always runs from /home directory. 
How to change path from /home to actually dir where the script runs from? I don't know whether it's macOS or pyinstaller feature. 
P.S.: I don't need to add .db file to executable. It should be separate but in the same directory with script