I have a python script that takes data from an excel file (database.xlsx). I want to freeze the script (ecobel.py) using pyinstaller.
I'd like to know if in the python script I should use the current path where the database file is or if I should reference where I'm putting it in the executable path. I'm currently just calling the path where I'd normally put the database file on my laptop.
In addition, after entering the right path, I'm currently typing this in the comand prompt:
--onefile --add-data database.xlsx;. ecobel.py
which returns "No such file or directory: 'database.xlsx'" when launching the formed executable file.