def clear_zipimport_cache():
 import sys, zipimport
 syspath_backup = list(sys.path)
 zipimport._zip_directory_cache.clear()
 sys.path = syspath_backup
 sys.path_importer_cache.clear()

def clear_zipimport_cache ( ) : import sys , zipimport syspath_backup = list ( sys . path ) zipimport . _zip_directory_cache . clear ( ) sys . path = syspath_backup sys . path_importer_cache . clear ( )
clear out cached entries from _zip_directory_cache .