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):