Is there a difference between program execution in studio and robot execution?

hello everyone
I have a program to process excel. I store the path of excel that needs to be processed in the config.xlsx file, and then the path of these excel that needs to be processed is a relative path (relative to the Main.xaml of my program); I The problem I encountered is: I made a judgment whether the path exists in the program. This judgment is executed in the studio. The returned result is true, but I deploy the program to the robot, and then execute the deployed program through the robot. , Always return false in the judgment of whether this path exists
I want to ask how to solve this problem