bindings: use lru_cache to support older Python releases

This commit is contained in:
Gabriel Ferreira
2022-10-28 01:15:07 -03:00
parent 3ce922e41a
commit b0e69fcbc8

View File

@@ -1,6 +1,6 @@
import builtins
from copy import copy
from functools import cache
from functools import lru_cache
import glob
import os.path
import sys
@@ -53,7 +53,7 @@ def trim_library_path(library_path: str) -> str:
return trimmed_library_path
@cache
@lru_cache(maxsize=None)
def _search_libraries() -> dict:
# Otherwise, search for ns-3 libraries
# Should be the case when ns-3 is installed as a package