mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 14:31:13 +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
@@ -22,7 +22,11 @@ import uuid
|
||||
import socket
|
||||
import shutil
|
||||
import aiohttp
|
||||
import importlib_resources
|
||||
|
||||
try:
|
||||
import importlib_resources
|
||||
except ImportError:
|
||||
from importlib import resources as importlib_resources
|
||||
|
||||
from ..config import Config
|
||||
from .project import Project
|
||||
|
||||
Reference in new issue
Block a user