mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-25 19:55:49 +03:00
[GH-ISSUE #397] Resolving the path of the exe files and not it instance in appdata temp #319
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 @VincentHk6 on GitHub (May 5, 2023).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/397
Discussed in https://github.com/brentvollebregt/auto-py-to-exe/discussions/394
Originally posted by VincentHk6 May 4, 2023
Dear,
I have the following lines in my .py that i convert to an exe one file window based;
source_path = Path(file).resolve()
source_dir = source_path.parent
I use the pass to access files as config files, so i just need to keep those files in the same folder as the exe.
The problem is that once running the exe it resolve a path here d\AppData\Local\Temp\_MEI209402\ .
Why is that, what did i miss to avoid this issue?
Best regards
Vincent
@github-actions[bot] commented on GitHub (May 5, 2023):
👋 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.
@brentvollebregt commented on GitHub (May 5, 2023):
In the help post, I discuss "The Difference Between One Directory and One File".
Files are put in a directory like this when using one-file mode. To not have your files moved into a directory like this, use one-directory mode.
When using one-file, a bootloader is needed to start the exe - more details on this in the PyInstaller docs here.
@brentvollebregt commented on GitHub (May 6, 2023):
This is now being discussed in https://github.com/brentvollebregt/auto-py-to-exe/discussions/394