mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 20:30:13 +01:00
Use importlib.util, if importing importlib fails.
Issue reported for python>3.8
This commit is contained in:
committed by
Valentin
parent
678aae1393
commit
5d085e38ee
@@ -24,4 +24,8 @@ if sys.version_info[0] == 2:
|
||||
|
||||
else:
|
||||
import importlib
|
||||
find_spec = importlib.util.find_spec
|
||||
try:
|
||||
find_spec = importlib.util.find_spec
|
||||
except AttributeError:
|
||||
import importlib.util
|
||||
find_spec = importlib.util.find_spec
|
||||
|
||||
Reference in New Issue
Block a user