-
-
Notifications
You must be signed in to change notification settings - Fork 710
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
Temporary directory does not get removed #2090
Comments
Hi! The folders are supposed to be removed here, but:
The "real" solution would be to only use data in memory (fonts are not that big). It should be possible to keep config files in memory thanks to If someone finds a better solution, I’ll be happy to try! |
This is pretty annoying, it is cluttering the /tmp folder. This could also be the case if there was an errors when calling rmtree (as ignore_errors is set tot True). |
We now use Unfortunately, there’s no function in Fontconfig to add fonts from memory (see almost 11-year old Fontconfig issue). Without such a function, as explained above, I didn’t find a reliable solution, ideas are welcome.
As far as I can remember, Windows was randomly trying hard to keep references to this folder, preventing Again, the real solution would be to avoid temporary folders, and it would require a new function in Fontconfig. |
I understand. Well, if this will only happen when using @font-face then that solves this for me at least 🙂 |
weasyprint apparently creates a temporary directory but does not remove the directory afterwards.
Windows folder location: C:\Users\user.name\AppData\Local\Temp
Subfolder naming example: weasyprint-0qjsm58z
The folders are empty but I believe they should be removed to not leave unnecessary folders (I currently have 8000 of these weasyprint-* folders, don't ask 😂).
The text was updated successfully, but these errors were encountered: