[GH-ISSUE #397] Resolving the path of the exe files and not it instance in appdata temp #319

Closed
opened 2026-02-26 12:21:12 +03:00 by kerem · 3 comments
Owner

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

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 <div type='discussions-op-text'> <sup>Originally posted by **VincentHk6** May 4, 2023</sup> 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</div>
kerem closed this issue 2026-02-26 12:21:12 +03:00
Author
Owner

@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.

<!-- gh-comment-id:1535572834 --> @github-actions[bot] commented on GitHub (May 5, 2023): 👋 Hi, just a reminder that if you haven't read [the help post](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe/) yet, give it a read to see if your issue is covered in it and make sure to follow [the debugging section](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe/#debugging). 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](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe/), [video](https://youtu.be/OZSZHmWSOeM) or create a [new discussion](https://github.com/brentvollebregt/auto-py-to-exe/discussions).
Author
Owner

@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.

<!-- gh-comment-id:1536140257 --> @brentvollebregt commented on GitHub (May 5, 2023): In the help post, I discuss ["The Difference Between One Directory and One File"](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe/#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](https://pyinstaller.org/en/stable/advanced-topics.html?highlight=_mei#bootloader).
Author
Owner

@brentvollebregt commented on GitHub (May 6, 2023):

This is now being discussed in https://github.com/brentvollebregt/auto-py-to-exe/discussions/394

<!-- gh-comment-id:1537058146 --> @brentvollebregt commented on GitHub (May 6, 2023): This is now being discussed in https://github.com/brentvollebregt/auto-py-to-exe/discussions/394
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#319
No description provided.