Skip to content
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

How to automatically clear temporary files of webview? #1554

Open
godcop opened this issue Dec 27, 2024 · 3 comments
Open

How to automatically clear temporary files of webview? #1554

godcop opened this issue Dec 27, 2024 · 3 comments

Comments

@godcop
Copy link

godcop commented Dec 27, 2024

The current situation is that every time the program is run, a temporary folder will be generated in the path "C:\Users\XXX\AppData\Local\Temp", and the folder name is similar to "tmps_95rxa0". When the program exits, it cannot be automatically cleared, and the console will also warn:
D:\Program Files\Python\Python313\Lib\tempfile.py:936: ResourceWarning: Implicitly cleaning up <TemporaryDirectory 'C:\Users\XXX\AppData\Local\Temp\tmps_95rxa0'>
_warnings.warn(warn_message, ResourceWarning)
This will cause some temporary files to be generated every time it is run, and slowly, it will cause disk space shortage.
How to automatically clear these temporary files and how to remove these warning messages?

@r0x0r
Copy link
Owner

r0x0r commented Dec 27, 2024

This is a bug.
I pushed a fix for it to master. Please test

@godcop
Copy link
Author

godcop commented Dec 30, 2024

This is a bug.  这是一个错误。 I pushed a fix for it to master. Please test我推送了一个修复程序来掌握它。请测试

Can you update it on Pypi for easy installation through pip? Thank you very much

@r0x0r
Copy link
Owner

r0x0r commented Dec 30, 2024

All in due time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants