Closed adalfarus closed 3 months ago
👋 Hi, just a reminder that if you haven't read the help post yet, give it a read to see if your issue is covered in it and make sure to follow the debugging section.
Also please note, as stated in the README, if your issue is only associated with your application and not auto-py-to-exe itself, please do not create an issue in this repository - instead, comment on the help post, video or create a new discussion.
The reason I'm not posting this to pyinstaller is because that is a commandline tool. You can change the arguments and resolve relative paths using a script file, but auto-py-to-exe can only accept predefined settings using a json file, so doing it like that is a lot harder and more error prone.
Thanks for raising this - I see how this could be an issue.
Looks like I need to add a function like convert_path_to_absolute
to the window to help with generating the current command. Will fix this when I get some time next 👌
Ah yes, I see PyInstaller makes the icon relative to the .spec file if it is provided as a relative path; see here. Since we make the .spec file generate in a temporary directory, it's making the calculated path relative to the temporary directory - which is not what we want.
Doesn't look like we can do any path magic, will need to go with a function like convert_path_to_absolute
as described above before creating the current command.
This should be fixed in #493 - drop a comment here if there is still an issue around this.
Quick Checks
Describe the bug
Relative paths to resources aren't resolved until it's compiling which usually isn't the indented usage.
To Reproduce
Expected behavior
It should resolve all relative paths and then start the compilation process.
Your Environment:
python --version
): 3.12.0pip show auto-py-to-exe
): 2.43.3pip show pyinstaller
): 6.7.0pip show eel
): 0.16.0