mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-05 06:00:58 +03:00
clear cache at exit
This commit is contained in:
parent
654b5f7958
commit
5366a94725
|
@ -110,6 +110,7 @@ import os
|
|||
import sys
|
||||
import io
|
||||
import struct
|
||||
import atexit
|
||||
|
||||
# type stuff
|
||||
import collections
|
||||
|
@ -2861,3 +2862,4 @@ def _apply_env_variables(env=None):
|
|||
warnings.warn("{0}: {1}".format(var_name, e))
|
||||
|
||||
_apply_env_variables()
|
||||
atexit.register(core.clear_cache)
|
||||
|
|
Loading…
Reference in New Issue
Block a user