mirror of
https://github.com/brentvollebregt/auto-py-to-exe.git
synced 2026-04-26 04:05:49 +03:00
[GH-ISSUE #316] Writing and Reading files is not permanently #277
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 @FrenkyDema on GitHub (Sep 26, 2022).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/316
Description
My application use json file to write some information, when i try in my IDE there is no problem.
But when i transform the project in executable application
How to Reproduce
My Environment:
3.10.6):2.23.1):5.4.1):0.14.0):Additional context
Test project -> TestIOReport
@brentvollebregt commented on GitHub (Sep 27, 2022):
There is quite a bit missing in your reproduction steps - specifically around bundling and running the executable.
Are you using one directory mode to package your application? Also did you follow the debugging steps before creating this issue? (means you would have used one directory before)
@FrenkyDema commented on GitHub (Sep 27, 2022):
I'm using the one file mode, and if is possible I prefer to maintain that
@FrenkyDema commented on GitHub (Sep 27, 2022):
For the reproduce steps u can check my test project I've linked in the issues report
@brentvollebregt commented on GitHub (Sep 27, 2022):
There is a help post that is linked in the README, top of auto-py-to-exe and bottom of auto-py-to-exe after each build. In this post, I discuss The Difference Between One Directory and One File - I highly recommend you give that a read.
I believe you are trying to overwrite a file that is part of the initial bundle and are expecting it to stay modified after each run - this is not how one-file mode works. one-file mode unbundles on each run meaning all modified files within the bundles are reset (more about this in the post).
@FrenkyDema commented on GitHub (Sep 27, 2022):
Oooo I understand, so to edit files and have permanent changes there is no way to have everything as One file?
@brentvollebregt commented on GitHub (Sep 27, 2022):
Changes will be kept when modifying files outside of the unpackaged package (like usual) - it is just the files within the exe that are reset.
Directly from the post I linked before:
@FrenkyDema commented on GitHub (Sep 27, 2022):
ok, ok sorry for the inconvenience, now I'll try