From 9d495a10ec8d3bda42df54d3b5ed2d2991e53f41 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 22 Jun 2013 01:38:07 +0200 Subject: [PATCH] Unicode static folder --- couchpotato/core/plugins/base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/plugins/base.py b/couchpotato/core/plugins/base.py index 0c4f80a0..aa2a99e9 100644 --- a/couchpotato/core/plugins/base.py +++ b/couchpotato/core/plugins/base.py @@ -1,6 +1,7 @@ from StringIO import StringIO from couchpotato.core.event import fireEvent, addEvent -from couchpotato.core.helpers.encoding import tryUrlencode, ss, toSafeString +from couchpotato.core.helpers.encoding import tryUrlencode, ss, toSafeString, \ + toUnicode from couchpotato.core.helpers.variable import getExt, md5 from couchpotato.core.logger import CPLog from couchpotato.environment import Env @@ -54,7 +55,7 @@ class Plugin(object): # Register plugin path self.plugin_path = os.path.dirname(plugin_file) - static_folder = os.path.join(self.plugin_path, 'static') + static_folder = toUnicode(os.path.join(self.plugin_path, 'static')) if not os.path.isdir(static_folder): return