mirror of
https://github.com/9001/copyparty.git
synced 2025-10-03 07:02:28 -06:00
util: use importlib_resources backport if available
This commit is contained in:
parent
5320ff9c1f
commit
0ce389f02a
|
@ -3562,6 +3562,9 @@ def hidedir(dp) -> None:
|
|||
|
||||
try:
|
||||
import importlib.resources as impresources
|
||||
except ImportError:
|
||||
try:
|
||||
import importlib_resources as impresources
|
||||
except ImportError:
|
||||
impresources = None
|
||||
|
||||
|
|
Loading…
Reference in a new issue