mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-25 11:45:49 +03:00
[GH-ISSUE #486] Relative Paths aren't resolved until in the temp directory #379
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @adalfarus on GitHub (May 22, 2024).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/486
Originally assigned to: @brentvollebregt on GitHub.
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@github-actions[bot] commented on GitHub (May 22, 2024):
👋 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.
@adalfarus commented on GitHub (May 22, 2024):
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.
@brentvollebregt commented on GitHub (May 25, 2024):
Thanks for raising this - I see how this could be an issue.
Looks like I need to add a function like
convert_path_to_absoluteto the window to help with generating the current command. Will fix this when I get some time next 👌@brentvollebregt commented on GitHub (Jun 1, 2024):
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_absoluteas described above before creating the current command.@brentvollebregt commented on GitHub (Jun 21, 2024):
This should be fixed in #493 - drop a comment here if there is still an issue around this.