From 0ce389f02a19bbc3bc367ea2e2f4bf41107d5ee5 Mon Sep 17 00:00:00 2001 From: Shiz Date: Tue, 17 Sep 2024 12:07:22 +0200 Subject: [PATCH] util: use importlib_resources backport if available --- copyparty/util.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/copyparty/util.py b/copyparty/util.py index 9f8b35ab..c06b3fd8 100644 --- a/copyparty/util.py +++ b/copyparty/util.py @@ -3563,7 +3563,10 @@ def hidedir(dp) -> None: try: import importlib.resources as impresources except ImportError: - impresources = None + try: + import importlib_resources as impresources + except ImportError: + impresources = None def stat_resource(E: EnvParams, name: str):