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