aboutsummaryrefslogtreecommitdiff
path: root/addons/weather.wunderground/default.py
diff options
context:
space:
mode:
authorMartin van Beurden <chadoe@xbmc.org>2012-03-03 11:39:07 +0100
committerMartin van Beurden <chadoe@xbmc.org>2012-03-03 11:39:07 +0100
commit98555fba4d4564354f8a19220d0f26b321b0cf12 (patch)
tree5c4f2bf9e898939b6207b9a10ba7c77b43ecf081 /addons/weather.wunderground/default.py
parent93d4cb6bd1612fb697de397b1bbb98b2be3d7e71 (diff)
fixed: import error loading weather underground on Windows with non/extended-ascii profile paths like G:\XBMC\íö Decode utf-8 returnvalue of translatePath to internal encoding before appending it to the system path.
Diffstat (limited to 'addons/weather.wunderground/default.py')
-rw-r--r--addons/weather.wunderground/default.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/weather.wunderground/default.py b/addons/weather.wunderground/default.py
index ab52420a2b..009f0f5e3b 100644
--- a/addons/weather.wunderground/default.py
+++ b/addons/weather.wunderground/default.py
@@ -20,7 +20,7 @@ import xbmcgui, xbmcaddon
__addon__ = xbmcaddon.Addon()
__provider__ = __addon__.getAddonInfo('name')
__cwd__ = __addon__.getAddonInfo('path')
-__resource__ = xbmc.translatePath(os.path.join(__cwd__, 'resources', 'lib'))
+__resource__ = xbmc.translatePath(os.path.join(__cwd__, 'resources', 'lib')).decode("utf-8")
sys.path.append (__resource__)