I have recently built a project for database monitoring purposes and I'm trying to install it on a server, so I use pyInstaller to package it, but when I tried installing and running the code on my laptop it gave me an output different to that of when I run it on pycharm. the code is supposed to send emails if notices missing files or delays, and it is working fine on pycharm, but the version I got after using pyinstaller is giving wrong results by always comparing to the default value of the file name and not sending any delay alert email.
So is there any explanation for this difference in behavior despite being on the same machine with the same code?