mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 14:01:15 +02:00
Only use importlib_resources for Python < 3.9. Fixes #2147
This commit is contained in:
1 parent
076e85ddb3
commit
c56a8ef8f7
4 files changed
+18
-4
No files matched your search
@@ -19,7 +19,12 @@ import atexit
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import importlib_resources
|
||||
|
||||
try:
|
||||
import importlib_resources
|
||||
except ImportError:
|
||||
from importlib import resources as importlib_resources
|
||||
|
||||
|
||||
from contextlib import ExitStack
|
||||
resource_manager = ExitStack()
|
||||
|
||||
Reference in new issue
Block a user