Skip to content

Commit

Permalink
fixed the import issue for different Kodi versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
elgatito committed Dec 23, 2020
1 parent 15e9696 commit 0de0ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/site-packages/elementum/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
from elementum.addon import ADDON, ADDON_NAME, ADDON_ICON

def translatePath(path):
if PLATFORM['kodi'] >= 19:
try:
from xbmcvfs import translatePath
else:
except ImportError:
from xbmc import translatePath

return translatePath(path)
Expand Down

0 comments on commit 0de0ca6

Please sign in to comment.