Skip to content

Commit

Permalink
perf: ⚡️ _install loader
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoQi99 committed Nov 6, 2024
1 parent 28f3d54 commit 6970950
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pyencrypt/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 6970950

Please sign in to comment.