-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative Paths aren't resolved until in the temp directory #486
Comments
👋 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 |
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 |
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.0The text was updated successfully, but these errors were encountered: