From a59c7c253c6bea4e8d633e160c548ce899019b77 Mon Sep 17 00:00:00 2001 From: Uriziel Date: Sat, 26 Dec 2015 18:30:07 +0100 Subject: [PATCH] Fixed relative config loading with utf-8 names --- syncplay/ui/ConfigurationGetter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncplay/ui/ConfigurationGetter.py b/syncplay/ui/ConfigurationGetter.py index d185086..db6f7a1 100755 --- a/syncplay/ui/ConfigurationGetter.py +++ b/syncplay/ui/ConfigurationGetter.py @@ -354,7 +354,7 @@ class ConfigurationGetter(object): for name in constants.CONFIG_NAMES: path = location + os.path.sep + name if os.path.isfile(path) and (os.name == 'nt' or path != os.path.join(os.getenv('HOME', '.'), constants.DEFAULT_CONFIG_NAME_LINUX)): - loadedPaths.append("'" + os.path.normpath(path) + "'") + loadedPaths.append("'" + os.path.normpath(path).decode('utf-8') + "'") self._parseConfigFile(path, createConfig=False) self._checkConfig() return loadedPaths @@ -427,4 +427,4 @@ class SafeConfigParserUnicode(SafeConfigParser): if (value is not None) or (self._optcre == self.OPTCRE): key = " = ".join((key, unicode(value).replace('\n', '\n\t'))) fp.write("%s\n" % key) - fp.write("\n") \ No newline at end of file + fp.write("\n")