diff --git a/pyencrypt/loader.py b/pyencrypt/loader.py index 56f78a7..a4f6bc2 100644 --- a/pyencrypt/loader.py +++ b/pyencrypt/loader.py @@ -107,5 +107,9 @@ def invalidate_caches(cls): # TODO: generate randomly AES Class -machinery.EXTENSION_SUFFIXES.append(ENCRYPT_SUFFIX) -sys.meta_path.insert(0, EncryptFileFinder) +def _install(): + machinery.EXTENSION_SUFFIXES.append(ENCRYPT_SUFFIX) + sys.meta_path.insert(0, EncryptFileFinder) + + +_install()