DEV Community


Discussion on: How to convert .py to .exe? Step by step guide.

sanchit1219 profile image
sanchit Kedia

Hi, i am reading data from an excel using pandas in the code. How should i write the path for the excel such that when i send the "one dir" file to another user it doesn't give the error "no such file or directory".

eshleron profile image
Eshleron Author

I think you just have to make sure when you open the file in your app that the file is there. So you should send a copy to other user so the original stays there or you delete this one and create a new one with the same name.
I think if the file is not present in the directory when you try to open it it will trigger the exception, but otherwise it shouldn't.

Some comments have been hidden by the post's author - find out more

Forem Open with the Forem app