diff options
author | Martin van Beurden <chadoe@xbmc.org> | 2012-03-03 11:39:07 +0100 |
---|---|---|
committer | Martin van Beurden <chadoe@xbmc.org> | 2012-03-03 11:39:07 +0100 |
commit | 98555fba4d4564354f8a19220d0f26b321b0cf12 (patch) | |
tree | 5c4f2bf9e898939b6207b9a10ba7c77b43ecf081 /addons | |
parent | 93d4cb6bd1612fb697de397b1bbb98b2be3d7e71 (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')
-rw-r--r-- | addons/weather.wunderground/addon.xml | 2 | ||||
-rw-r--r-- | addons/weather.wunderground/changelog.txt | 3 | ||||
-rw-r--r-- | addons/weather.wunderground/default.py | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/addons/weather.wunderground/addon.xml b/addons/weather.wunderground/addon.xml index 98556927c7..157565a95e 100644 --- a/addons/weather.wunderground/addon.xml +++ b/addons/weather.wunderground/addon.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -<addon id="weather.wunderground" name="Weather Underground" version="0.0.6" provider-name="Team XBMC"> +<addon id="weather.wunderground" name="Weather Underground" version="0.0.7" provider-name="Team XBMC"> <requires> <import addon="xbmc.python" version="2.0"/> <import addon="script.module.simplejson" version="2.0.10"/> diff --git a/addons/weather.wunderground/changelog.txt b/addons/weather.wunderground/changelog.txt index 5a94e3ef9d..8640648ed0 100644 --- a/addons/weather.wunderground/changelog.txt +++ b/addons/weather.wunderground/changelog.txt @@ -1,3 +1,6 @@ +v0.0.7 +- fix: import error on Windows with non/extended-ascii profile paths + v0.0.6 - ignore various n/a values in wu data - use kph value for windspeed 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__) |